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 // Enable automatic timezone update. | 307 // Disable automatic timezone update. |
308 const char kEnableTimeZoneTrackingOption[] = "enable-timezone-tracking-option"; | 308 const char kDisableTimeZoneTrackingOption[] = |
| 309 "disable-timezone-tracking-option"; |
309 | 310 |
310 bool WakeOnWifiEnabled() { | 311 bool WakeOnWifiEnabled() { |
311 return !base::CommandLine::ForCurrentProcess()->HasSwitch(kDisableWakeOnWifi); | 312 return !base::CommandLine::ForCurrentProcess()->HasSwitch(kDisableWakeOnWifi); |
312 } | 313 } |
313 | 314 |
314 base::MemoryPressureObserverChromeOS::MemoryPressureThresholds | 315 base::MemoryPressureObserverChromeOS::MemoryPressureThresholds |
315 GetMemoryPressureThresholds() { | 316 GetMemoryPressureThresholds() { |
316 if (!base::CommandLine::ForCurrentProcess()->HasSwitch( | 317 if (!base::CommandLine::ForCurrentProcess()->HasSwitch( |
317 kMemoryPressureThresholds)) { | 318 kMemoryPressureThresholds)) { |
318 return base::MemoryPressureObserverChromeOS::THRESHOLD_DEFAULT; | 319 return base::MemoryPressureObserverChromeOS::THRESHOLD_DEFAULT; |
(...skipping 10 matching lines...) Expand all Loading... |
329 } | 330 } |
330 if (option == "3") { | 331 if (option == "3") { |
331 return base::MemoryPressureObserverChromeOS:: | 332 return base::MemoryPressureObserverChromeOS:: |
332 THRESHOLD_AGGRESSIVE_TAB_DISCARD; | 333 THRESHOLD_AGGRESSIVE_TAB_DISCARD; |
333 } | 334 } |
334 return base::MemoryPressureObserverChromeOS::THRESHOLD_AGGRESSIVE; | 335 return base::MemoryPressureObserverChromeOS::THRESHOLD_AGGRESSIVE; |
335 } | 336 } |
336 | 337 |
337 } // namespace switches | 338 } // namespace switches |
338 } // namespace chromeos | 339 } // namespace chromeos |
OLD | NEW |