| 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 | 8 |
| 9 // TODO(rsorokin): alphabetize all of these switches so they | 9 // TODO(rsorokin): alphabetize all of these switches so they |
| 10 // match the order from the .h file | 10 // match the order from the .h file |
| (...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 // stored. | 297 // stored. |
| 298 const char kGoldenScreenshotsDir[] = "golden-screenshots-dir"; | 298 const char kGoldenScreenshotsDir[] = "golden-screenshots-dir"; |
| 299 | 299 |
| 300 // Screenshot testing: specifies the directoru where artifacts will be stored. | 300 // Screenshot testing: specifies the directoru where artifacts will be stored. |
| 301 const char kArtifactsDir[] = "artifacts-dir"; | 301 const char kArtifactsDir[] = "artifacts-dir"; |
| 302 | 302 |
| 303 // Bypass proxy for captive portal authorization. | 303 // Bypass proxy for captive portal authorization. |
| 304 const char kEnableCaptivePortalBypassProxy[] = | 304 const char kEnableCaptivePortalBypassProxy[] = |
| 305 "enable-captive-portal-bypass-proxy"; | 305 "enable-captive-portal-bypass-proxy"; |
| 306 | 306 |
| 307 // Disable automatic timezone update. | 307 // Enable automatic timezone update. |
| 308 const char kDisableTimeZoneTrackingOption[] = | 308 const char kEnableTimeZoneTrackingOption[] = "enable-timezone-tracking-option"; |
| 309 "disable-timezone-tracking-option"; | |
| 310 | 309 |
| 311 bool WakeOnWifiEnabled() { | 310 bool WakeOnWifiEnabled() { |
| 312 return !base::CommandLine::ForCurrentProcess()->HasSwitch(kDisableWakeOnWifi); | 311 return !base::CommandLine::ForCurrentProcess()->HasSwitch(kDisableWakeOnWifi); |
| 313 } | 312 } |
| 314 | 313 |
| 315 base::MemoryPressureObserverChromeOS::MemoryPressureThresholds | 314 base::MemoryPressureObserverChromeOS::MemoryPressureThresholds |
| 316 GetMemoryPressureThresholds() { | 315 GetMemoryPressureThresholds() { |
| 317 if (!base::CommandLine::ForCurrentProcess()->HasSwitch( | 316 if (!base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 318 kMemoryPressureThresholds)) { | 317 kMemoryPressureThresholds)) { |
| 319 return base::MemoryPressureObserverChromeOS::THRESHOLD_DEFAULT; | 318 return base::MemoryPressureObserverChromeOS::THRESHOLD_DEFAULT; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 330 } | 329 } |
| 331 if (option == "3") { | 330 if (option == "3") { |
| 332 return base::MemoryPressureObserverChromeOS:: | 331 return base::MemoryPressureObserverChromeOS:: |
| 333 THRESHOLD_AGGRESSIVE_TAB_DISCARD; | 332 THRESHOLD_AGGRESSIVE_TAB_DISCARD; |
| 334 } | 333 } |
| 335 return base::MemoryPressureObserverChromeOS::THRESHOLD_AGGRESSIVE; | 334 return base::MemoryPressureObserverChromeOS::THRESHOLD_AGGRESSIVE; |
| 336 } | 335 } |
| 337 | 336 |
| 338 } // namespace switches | 337 } // namespace switches |
| 339 } // namespace chromeos | 338 } // namespace chromeos |
| OLD | NEW |