Home
last modified time | relevance | path

Searched refs:HasSwitch (Results 1 – 25 of 757) sorted by relevance

12345678910>>...31

/external/chromium_org/content/child/
Druntime_features.cc62 if (command_line.HasSwitch(switches::kEnableExperimentalWebPlatformFeatures)) in SetRuntimeFeaturesDefaultsAndUpdateFromArgs()
67 if (command_line.HasSwitch(switches::kDisableDatabases)) in SetRuntimeFeaturesDefaultsAndUpdateFromArgs()
70 if (command_line.HasSwitch(switches::kDisableApplicationCache)) in SetRuntimeFeaturesDefaultsAndUpdateFromArgs()
73 if (command_line.HasSwitch(switches::kDisableDesktopNotifications)) in SetRuntimeFeaturesDefaultsAndUpdateFromArgs()
76 if (command_line.HasSwitch(switches::kDisableNavigatorContentUtils)) in SetRuntimeFeaturesDefaultsAndUpdateFromArgs()
79 if (command_line.HasSwitch(switches::kDisableLocalStorage)) in SetRuntimeFeaturesDefaultsAndUpdateFromArgs()
82 if (command_line.HasSwitch(switches::kDisableSessionStorage)) in SetRuntimeFeaturesDefaultsAndUpdateFromArgs()
85 if (command_line.HasSwitch(switches::kDisableMediaSource)) in SetRuntimeFeaturesDefaultsAndUpdateFromArgs()
88 if (command_line.HasSwitch(switches::kDisableSharedWorkers)) in SetRuntimeFeaturesDefaultsAndUpdateFromArgs()
92 if (command_line.HasSwitch(switches::kDisableWebRTC)) { in SetRuntimeFeaturesDefaultsAndUpdateFromArgs()
[all …]
/external/chromium_org/base/
Dcommand_line_unittest.cc50 EXPECT_FALSE(cl.HasSwitch("cruller")); in TEST()
51 EXPECT_FALSE(cl.HasSwitch("flim")); in TEST()
52 EXPECT_FALSE(cl.HasSwitch("program")); in TEST()
53 EXPECT_FALSE(cl.HasSwitch("dog")); in TEST()
54 EXPECT_FALSE(cl.HasSwitch("cat")); in TEST()
55 EXPECT_FALSE(cl.HasSwitch("output-rotation")); in TEST()
56 EXPECT_FALSE(cl.HasSwitch("not-a-switch")); in TEST()
57 EXPECT_FALSE(cl.HasSwitch("--")); in TEST()
62 EXPECT_TRUE(cl.HasSwitch("foo")); in TEST()
63 EXPECT_TRUE(cl.HasSwitch("bAr")); in TEST()
[all …]
/external/chromium_org/components/signin/core/common/
Dprofile_management_switches.cc33 CommandLine::ForCurrentProcess()->HasSwitch( in GetProcessState()
36 CommandLine::ForCurrentProcess()->HasSwitch( in GetProcessState()
39 CommandLine::ForCurrentProcess()->HasSwitch( in GetProcessState()
42 CommandLine::ForCurrentProcess()->HasSwitch( in GetProcessState()
95 if (CommandLine::ForCurrentProcess()->HasSwitch(command_switch)) in CheckFlag()
110 return CommandLine::ForCurrentProcess()->HasSwitch( in IsEnableWebBasedSignin()
121 CommandLine::ForCurrentProcess()->HasSwitch(switches::kNewAvatarMenu) && in IsFastUserSwitching()
123 return CommandLine::ForCurrentProcess()->HasSwitch( in IsFastUserSwitching()
134 CommandLine::ForCurrentProcess()->HasSwitch(switches::kNewAvatarMenu); in IsNewAvatarMenu()
144 CommandLine::ForCurrentProcess()->HasSwitch(switches::kNewAvatarMenu); in IsNewProfileManagementPreviewEnabled()
[all …]
/external/chromium_org/content/browser/gpu/
Dcompositor_util.cc59 command_line.HasSwitch(switches::kDisableAccelerated2dCanvas) || in GetGpuFeatureInfo()
78 command_line.HasSwitch(switches::kDisableExperimentalWebGL), in GetGpuFeatureInfo()
85 command_line.HasSwitch(switches::kDisableFlash3d), in GetGpuFeatureInfo()
93 command_line.HasSwitch(switches::kDisableFlashStage3d), in GetGpuFeatureInfo()
103 command_line.HasSwitch(switches::kDisableFlashStage3d), in GetGpuFeatureInfo()
112 command_line.HasSwitch(switches::kDisableAcceleratedVideoDecode), in GetGpuFeatureInfo()
122 command_line.HasSwitch(switches::kDisableWebRtcHWEncoding), in GetGpuFeatureInfo()
132 command_line.HasSwitch(switches::kDisablePanelFitting), in GetGpuFeatureInfo()
169 if (command_line.HasSwitch(cc::switches::kDisablePinchVirtualViewport)) in IsPinchVirtualViewportEnabled()
171 if (command_line.HasSwitch(cc::switches::kEnablePinchVirtualViewport)) in IsPinchVirtualViewportEnabled()
[all …]
/external/chromium_org/chrome/browser/
Dabout_flags_unittest.cc217 EXPECT_TRUE(command_line.HasSwitch("foo")); in TEST_F()
218 EXPECT_FALSE(command_line.HasSwitch(kSwitch1)); in TEST_F()
222 EXPECT_TRUE(command_line.HasSwitch("foo")); in TEST_F()
223 EXPECT_TRUE(command_line.HasSwitch(kSwitch1)); in TEST_F()
224 EXPECT_TRUE(command_line.HasSwitch(switches::kFlagSwitchesBegin)); in TEST_F()
225 EXPECT_TRUE(command_line.HasSwitch(switches::kFlagSwitchesEnd)); in TEST_F()
231 EXPECT_TRUE(command_line2.HasSwitch(kSwitch1)); in TEST_F()
232 EXPECT_FALSE(command_line2.HasSwitch(switches::kFlagSwitchesBegin)); in TEST_F()
233 EXPECT_FALSE(command_line2.HasSwitch(switches::kFlagSwitchesEnd)); in TEST_F()
300 EXPECT_FALSE(command_line.HasSwitch(kSwitch1)); in TEST_F()
[all …]
Dio_thread.cc161 if (command_line.HasSwitch(switches::kHostResolverParallelism)) { in CreateGlobalHostResolver()
175 if (command_line.HasSwitch(switches::kHostResolverRetryAttempts)) { in CreateGlobalHostResolver()
198 if (command_line.HasSwitch(switches::kEnableIPv6)) { in CreateGlobalHostResolver()
202 } else if (command_line.HasSwitch(switches::kDisableIPv6)) { in CreateGlobalHostResolver()
209 if (!command_line.HasSwitch(switches::kHostResolverRules)) in CreateGlobalHostResolver()
544 if (command_line.HasSwitch(switches::kEnableClientHints)) in InitAsync()
546 if (command_line.HasSwitch(switches::kDisableExtensionsHttpThrottling)) in InitAsync()
573 if (command_line.HasSwitch(switches::kCertificateTransparencyLog)) { in InitAsync()
598 if (command_line.HasSwitch(switches::kCertificateTransparencyLog)) { in InitAsync()
637 if (command_line.HasSwitch(switches::kHostRules)) { in InitAsync()
[all …]
Dchrome_browser_main.cc211 if (command_line.HasSwitch(switches::kBrowserAssertTest)) { in HandleTestParameters()
216 if (command_line.HasSwitch(switches::kBrowserCrashTest)) { in HandleTestParameters()
276 parsed_command_line.HasSwitch(switches::kParentProfile)) { in InitializeLocalState()
295 if (parsed_command_line.HasSwitch(chromeos::switches::kLoginManager)) { in InitializeLocalState()
318 parsed_command_line.HasSwitch(switches::kProfileDirectory)) { in CreatePrimaryProfile()
399 if (!command_line.HasSwitch(switches::kDisableCRLSets)) in RegisterComponentsForUpdate()
426 if (command_line.HasSwitch(switches::kOriginalProcessStartTime)) { in ProcessSingletonNotificationCallback()
433 if (command_line.HasSwitch(switches::kFastStart)) { in ProcessSingletonNotificationCallback()
458 if (command_line.HasSwitch(::switches::kRemoteDebuggingPort)) { in LaunchDevToolsHandlerIfNeeded()
567 if (command_line->HasSwitch(switches::kEnableBenchmarking)) in SetupMetricsAndFieldTrials()
[all …]
Dchrome_content_browser_client_unittest.cc62 EXPECT_TRUE(to_command_line_.HasSwitch(switches::kDisableWebRtcEncryption)); in TEST_F()
67 EXPECT_TRUE(to_command_line_.HasSwitch(switches::kDisableWebRtcEncryption)); in TEST_F()
72 EXPECT_TRUE(to_command_line_.HasSwitch(switches::kDisableWebRtcEncryption)); in TEST_F()
78 EXPECT_TRUE(to_command_line_.HasSwitch(switches::kDisableWebRtcEncryption)); in TEST_F()
80 EXPECT_FALSE(to_command_line_.HasSwitch(switches::kDisableWebRtcEncryption)); in TEST_F()
86 EXPECT_FALSE(to_command_line_.HasSwitch(switches::kDisableWebRtcEncryption)); in TEST_F()
/external/chromium_org/ui/app_list/
Dapp_list_switches.cc36 return !CommandLine::ForCurrentProcess()->HasSwitch(kDisableSyncAppList); in IsAppListSyncEnabled()
38 return CommandLine::ForCurrentProcess()->HasSwitch(kEnableSyncAppList); in IsAppListSyncEnabled()
54 return !CommandLine::ForCurrentProcess()->HasSwitch(kDisableVoiceSearch); in IsVoiceSearchEnabled()
62 return !CommandLine::ForCurrentProcess()->HasSwitch(kDisableAppInfo); in IsAppInfoEnabled()
69 return CommandLine::ForCurrentProcess()->HasSwitch( in IsExperimentalAppListEnabled()
74 return CommandLine::ForCurrentProcess()->HasSwitch(kEnableCenteredAppList) || in IsCenteredAppListEnabled()
79 return CommandLine::ForCurrentProcess()->HasSwitch(kEnableDriveAppsInAppList); in IsDriveAppsInAppListEnabled()
/external/chromium_org/content/renderer/gpu/
Drender_widget_compositor.cc101 !cmd->HasSwitch(switches::kDisableGpuVsync); in Create()
103 cmd->HasSwitch(switches::kEnableBeginFrameScheduling); in Create()
105 cmd->HasSwitch(cc::switches::kEnableMainFrameBeforeActivation) && in Create()
106 !cmd->HasSwitch(cc::switches::kDisableMainFrameBeforeActivation); in Create()
108 !cmd->HasSwitch(cc::switches::kDisableMainFrameBeforeDraw); in Create()
111 !cmd->HasSwitch(cc::switches::kDisableThreadedAnimation); in Create()
113 !cmd->HasSwitch(cc::switches::kDisableCompositorTouchHitTesting); in Create()
116 if (cmd->HasSwitch(switches::kDefaultTileWidth)) { in Create()
121 if (cmd->HasSwitch(switches::kDefaultTileHeight)) { in Create()
129 if (cmd->HasSwitch(switches::kMaxUntiledLayerWidth)) { in Create()
[all …]
/external/chromium_org/chrome/browser/prefs/
Dcommand_line_pref_store.cc87 if (command_line_->HasSwitch(switches::kNoProxyServer) && in ValidateProxySwitches()
88 (command_line_->HasSwitch(switches::kProxyAutoDetect) || in ValidateProxySwitches()
89 command_line_->HasSwitch(switches::kProxyServer) || in ValidateProxySwitches()
90 command_line_->HasSwitch(switches::kProxyPacUrl) || in ValidateProxySwitches()
91 command_line_->HasSwitch(switches::kProxyBypassList))) { in ValidateProxySwitches()
102 if (command_line_->HasSwitch(string_switch_map_[i].switch_name)) { in ApplySimpleSwitches()
110 if (command_line_->HasSwitch(integer_switch_map_[i].switch_name)) { in ApplySimpleSwitches()
126 if (command_line_->HasSwitch(boolean_switch_map_[i].switch_name)) { in ApplySimpleSwitches()
135 if (command_line_->HasSwitch(switches::kNoProxyServer)) { in ApplyProxyMode()
138 } else if (command_line_->HasSwitch(switches::kProxyPacUrl)) { in ApplyProxyMode()
[all …]
/external/chromium_org/ui/base/
Dui_base_switches_util.cc13 return CommandLine::ForCurrentProcess()->HasSwitch( in IsTextInputFocusManagerEnabled()
19 return !CommandLine::ForCurrentProcess()->HasSwitch( in IsTouchDragDropEnabled()
22 return CommandLine::ForCurrentProcess()->HasSwitch( in IsTouchDragDropEnabled()
29 return !CommandLine::ForCurrentProcess()->HasSwitch( in IsTouchEditingEnabled()
32 return CommandLine::ForCurrentProcess()->HasSwitch( in IsTouchEditingEnabled()
/external/chromium_org/net/tools/testserver/
Drun_testserver.cc42 command_line->HasSwitch("help")) { in main()
48 if (command_line->HasSwitch("http")) { in main()
50 } else if (command_line->HasSwitch("https")) { in main()
52 } else if (command_line->HasSwitch("ws")) { in main()
54 } else if (command_line->HasSwitch("wss")) { in main()
56 } else if (command_line->HasSwitch("ftp")) { in main()
61 if (command_line->HasSwitch("ssl-cert")) in main()
68 if (command_line->HasSwitch("ssl-cert")) { in main()
/external/chromium_org/net/tools/dump_cache/
Ddump_cache.cc83 bool do_upgrade = command_line.HasSwitch(kUpgrade); in LaunchSlave()
84 bool do_convert_to_text = command_line.HasSwitch(kDumpToFiles); in LaunchSlave()
121 bool dump_to_files = command_line.HasSwitch(kDumpToFiles); in main()
122 bool upgrade = command_line.HasSwitch(kUpgrade); in main()
134 if (command_line.HasSwitch(kSlave)) { in main()
143 if (command_line.HasSwitch(kSlave) && slave_required) in main()
181 if (command_line.HasSwitch(kDumpContents)) in main()
184 if (command_line.HasSwitch(kDumpHeaders)) in main()
/external/chromium_org/net/tools/quic/
Dquic_client_bin.cc52 if (line->HasSwitch("h") || line->HasSwitch("help")) { in main()
65 if (line->HasSwitch("port")) { in main()
71 if (line->HasSwitch("address")) { in main()
74 if (line->HasSwitch("hostname")) { in main()
77 if (line->HasSwitch("secure")) { in main()
/external/chromium_org/net/tools/flip_server/
Dflip_in_mem_edsm_server.cc167 if (cl.HasSwitch("help") || argc < 2) { in main()
206 if (cl.HasSwitch("pidfile")) { in main()
214 if (cl.HasSwitch("forward-ip-header")) { in main()
221 if (cl.HasSwitch("logdest")) { in main()
236 if (cl.HasSwitch("logfile")) { in main()
245 if (cl.HasSwitch("wait-for-iface")) { in main()
249 if (cl.HasSwitch("ssl-session-expiry")) { in main()
254 if (cl.HasSwitch("ssl-disable-compression")) { in main()
258 if (cl.HasSwitch("idle-timeout")) { in main()
263 if (cl.HasSwitch("force_spdy")) in main()
[all …]
/external/chromium_org/ui/compositor/
Dcompositor.cc102 !command_line->HasSwitch(switches::kDisableGpuVsync); in Compositor()
105 !command_line->HasSwitch(cc::switches::kUIDisablePartialSwap); in Compositor()
113 command_line->HasSwitch(cc::switches::kUIShowCompositedLayerBorders); in Compositor()
115 command_line->HasSwitch(cc::switches::kUIShowFPSCounter); in Compositor()
117 command_line->HasSwitch(cc::switches::kUIShowLayerAnimationBounds); in Compositor()
119 command_line->HasSwitch(switches::kUIShowPaintRects); in Compositor()
121 command_line->HasSwitch(cc::switches::kUIShowPropertyChangedRects); in Compositor()
123 command_line->HasSwitch(cc::switches::kUIShowSurfaceDamageRects); in Compositor()
125 command_line->HasSwitch(cc::switches::kUIShowScreenSpaceRects); in Compositor()
127 command_line->HasSwitch(cc::switches::kUIShowReplicaScreenSpaceRects); in Compositor()
[all …]
/external/chromium_org/chrome/browser/extensions/api/command_line_private/
Dcommand_line_private_api.cc25 scoped_ptr<command_line_private::HasSwitch::Params> params( in RunSync()
26 command_line_private::HasSwitch::Params::Create(*args_)); in RunSync()
34 results_ = command_line_private::HasSwitch::Results::Create( in RunSync()
35 CommandLine::ForCurrentProcess()->HasSwitch(params->name)); in RunSync()
/external/chromium_org/chromeos/tools/onc_validator/
Donc_validator.cc125 command_line.HasSwitch(kSwitchErrorOnUnknownField), in main()
126 command_line.HasSwitch(kSwitchErrorOnWrongRecommended), in main()
127 command_line.HasSwitch(kSwitchErrorOnMissingField), in main()
128 command_line.HasSwitch(kSwitchManagedOnc)); in main()
130 if (command_line.HasSwitch(kSwitchUserPolicy)) in main()
132 else if (command_line.HasSwitch(kSwitchDevicePolicy)) in main()
134 else if (command_line.HasSwitch(kSwitchUserImport)) in main()
/external/chromium_org/chrome/test/chromedriver/server/
Dchromedriver_server.cc221 if (cmd_line->HasSwitch("h") || cmd_line->HasSwitch("help")) { in main()
244 if (cmd_line->HasSwitch("v") || cmd_line->HasSwitch("version")) { in main()
248 if (cmd_line->HasSwitch("port")) { in main()
254 if (cmd_line->HasSwitch("adb-port")) { in main()
261 if (cmd_line->HasSwitch("port-server")) { in main()
277 if (cmd_line->HasSwitch("url-base")) in main()
283 if (cmd_line->HasSwitch("whitelisted-ips")) { in main()
288 if (!cmd_line->HasSwitch("silent")) { in main()
/external/chromium_org/chrome/browser/chromeos/
Dchrome_browser_main_chromeos.cc194 return command_line.HasSwitch(switches::kLoginManager) && in ShouldAutoLaunchKioskApp()
195 !command_line.HasSwitch(switches::kForceLoginManagerInTests) && in ShouldAutoLaunchKioskApp()
213 } else if (parsed_command_line.HasSwitch(switches::kLoginManager)) { in OptionallyRunChromeOSLoginManager()
226 } else if (parsed_command_line.HasSwitch(switches::kLoginUser) && in OptionallyRunChromeOSLoginManager()
227 parsed_command_line.HasSwitch(switches::kLoginPassword)) { in OptionallyRunChromeOSLoginManager()
233 if (!parsed_command_line.HasSwitch(::switches::kTestName)) { in OptionallyRunChromeOSLoginManager()
357 if (parsed_command_line().HasSwitch(switches::kGuestSession)) { in PreEarlyInitialization()
368 !parsed_command_line().HasSwitch(switches::kLoginManager) && in PreEarlyInitialization()
369 !parsed_command_line().HasSwitch(switches::kLoginUser) && in PreEarlyInitialization()
370 !parsed_command_line().HasSwitch(switches::kGuestSession)) { in PreEarlyInitialization()
[all …]
/external/chromium_org/content/browser/renderer_host/
Drender_view_host_impl.cc345 !command_line.HasSwitch(switches::kDisableJavaScript); in GetWebkitPrefs()
347 !command_line.HasSwitch(switches::kDisableWebSecurity); in GetWebkitPrefs()
349 !command_line.HasSwitch(switches::kDisablePlugins); in GetWebkitPrefs()
351 !command_line.HasSwitch(switches::kDisableJava); in GetWebkitPrefs()
354 !command_line.HasSwitch(switches::kDisableRemoteFonts); in GetWebkitPrefs()
356 !command_line.HasSwitch(switches::kDisableXSLT); in GetWebkitPrefs()
358 !command_line.HasSwitch(switches::kDisableXSSAuditor); in GetWebkitPrefs()
360 !command_line.HasSwitch(switches::kDisableApplicationCache); in GetWebkitPrefs()
363 !command_line.HasSwitch(switches::kDisableLocalStorage); in GetWebkitPrefs()
365 !command_line.HasSwitch(switches::kDisableDatabases); in GetWebkitPrefs()
[all …]
/external/chromium_org/content/renderer/
Drenderer_main.cc61 if (command_line.HasSwitch(switches::kWaitForDebugger)) in HandleRendererErrorTestParameters()
64 if (command_line.HasSwitch(switches::kRendererStartupDialog)) in HandleRendererErrorTestParameters()
68 if (command_line.HasSwitch(switches::kRendererAssertTest)) { in HandleRendererErrorTestParameters()
134 if (parsed_command_line.HasSwitch(switches::kLang)) { in RendererMain()
174 if (parsed_command_line.HasSwitch(switches::kMemoryMetrics)) { in RendererMain()
181 bool no_sandbox = parsed_command_line.HasSwitch(switches::kNoSandbox); in RendererMain()
191 if (parsed_command_line.HasSwitch(switches::kForceFieldTrials)) { in RendererMain()
/external/chromium_org/content/shell/renderer/
Dshell_content_renderer_client.cc70 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kDumpRenderTree)) { in ShellContentRendererClient()
101 if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kDumpRenderTree)) in RenderViewCreated()
124 if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kDumpRenderTree)) in OverrideCreateWebMediaStreamCenter()
138 if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kDumpRenderTree)) in OverrideCreateWebRTCPeerConnectionHandler()
160 if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kDumpRenderTree)) in OverrideCreateAudioDevice()
168 if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kDumpRenderTree)) in OverrideWebClipboard()
176 if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kDumpRenderTree)) in OverrideThemeEngine()
/external/chromium_org/content/shell/browser/
Dshell_content_browser_client.cc131 if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kDumpRenderTree)) in ShellContentBrowserClient()
148 if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kDumpRenderTree)) in RenderProcessWillLaunch()
210 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kDumpRenderTree)) in AppendExtraCommandLineSwitches()
212 if (CommandLine::ForCurrentProcess()->HasSwitch( in AppendExtraCommandLineSwitches()
215 if (CommandLine::ForCurrentProcess()->HasSwitch( in AppendExtraCommandLineSwitches()
218 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kStableReleaseMode)) in AppendExtraCommandLineSwitches()
220 if (CommandLine::ForCurrentProcess()->HasSwitch( in AppendExtraCommandLineSwitches()
224 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kCrashDumpsDir)) { in AppendExtraCommandLineSwitches()
230 if (CommandLine::ForCurrentProcess()->HasSwitch( in AppendExtraCommandLineSwitches()
233 if (CommandLine::ForCurrentProcess()->HasSwitch( in AppendExtraCommandLineSwitches()
[all …]

12345678910>>...31