| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chromeos/chromeos_switches.h" | 5 #include "chromeos/chromeos_switches.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/metrics/field_trial.h" | 8 #include "base/metrics/field_trial.h" |
| 9 | 9 |
| 10 // TODO(rsorokin): alphabetize all of these switches so they | 10 // TODO(rsorokin): alphabetize all of these switches so they |
| (...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 const char kArtifactsDir[] = "artifacts-dir"; | 318 const char kArtifactsDir[] = "artifacts-dir"; |
| 319 | 319 |
| 320 // Bypass proxy for captive portal authorization. | 320 // Bypass proxy for captive portal authorization. |
| 321 const char kEnableCaptivePortalBypassProxyOption[] = | 321 const char kEnableCaptivePortalBypassProxyOption[] = |
| 322 "enable-captive-portal-bypass-proxy-option"; | 322 "enable-captive-portal-bypass-proxy-option"; |
| 323 | 323 |
| 324 // Disable automatic timezone update. | 324 // Disable automatic timezone update. |
| 325 const char kDisableTimeZoneTrackingOption[] = | 325 const char kDisableTimeZoneTrackingOption[] = |
| 326 "disable-timezone-tracking-option"; | 326 "disable-timezone-tracking-option"; |
| 327 | 327 |
| 328 // Enable OAuth token validation on sign in screen. |
| 329 const char kEnableOAuthTokenHandlers[] = "enable-oauth-token-handlers"; |
| 330 |
| 328 // Disable new GAIA sign-in flow. | 331 // Disable new GAIA sign-in flow. |
| 329 const char kDisableWebviewSigninFlow[] = "disable-webview-signin-flow"; | 332 const char kDisableWebviewSigninFlow[] = "disable-webview-signin-flow"; |
| 330 | 333 |
| 331 // Enable Chrome OS firewall hole-punching for Chrome Apps. | 334 // Enable Chrome OS firewall hole-punching for Chrome Apps. |
| 332 const char kEnableFirewallHolePunching[] = "enable-firewall-hole-punching"; | 335 const char kEnableFirewallHolePunching[] = "enable-firewall-hole-punching"; |
| 333 | 336 |
| 334 bool WakeOnWifiEnabled() { | 337 bool WakeOnWifiEnabled() { |
| 335 return !base::CommandLine::ForCurrentProcess()->HasSwitch(kDisableWakeOnWifi); | 338 return !base::CommandLine::ForCurrentProcess()->HasSwitch(kDisableWakeOnWifi); |
| 336 } | 339 } |
| 337 | 340 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 375 return base::MemoryPressureObserverChromeOS:: | 378 return base::MemoryPressureObserverChromeOS:: |
| 376 THRESHOLD_AGGRESSIVE_TAB_DISCARD; | 379 THRESHOLD_AGGRESSIVE_TAB_DISCARD; |
| 377 if (option == kAggressiveThreshold) | 380 if (option == kAggressiveThreshold) |
| 378 return base::MemoryPressureObserverChromeOS::THRESHOLD_AGGRESSIVE; | 381 return base::MemoryPressureObserverChromeOS::THRESHOLD_AGGRESSIVE; |
| 379 | 382 |
| 380 return base::MemoryPressureObserverChromeOS::THRESHOLD_DEFAULT; | 383 return base::MemoryPressureObserverChromeOS::THRESHOLD_DEFAULT; |
| 381 } | 384 } |
| 382 | 385 |
| 383 } // namespace switches | 386 } // namespace switches |
| 384 } // namespace chromeos | 387 } // namespace chromeos |
| OLD | NEW |