Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Side by Side Diff: chromeos/chromeos_switches.cc

Issue 834073002: ChromeOS: Implement periodic timezone refresh on geolocation data. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix rebase. Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chromeos/chromeos_switches.h ('k') | chromeos/timezone/OWNERS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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.
308 const char kEnableTimeZoneTrackingOption[] = "enable-timezone-tracking-option";
309
307 bool WakeOnWifiEnabled() { 310 bool WakeOnWifiEnabled() {
308 return !base::CommandLine::ForCurrentProcess()->HasSwitch(kDisableWakeOnWifi); 311 return !base::CommandLine::ForCurrentProcess()->HasSwitch(kDisableWakeOnWifi);
309 } 312 }
310 313
311 base::MemoryPressureObserverChromeOS::MemoryPressureThresholds 314 base::MemoryPressureObserverChromeOS::MemoryPressureThresholds
312 GetMemoryPressureThresholds() { 315 GetMemoryPressureThresholds() {
313 if (!base::CommandLine::ForCurrentProcess()->HasSwitch( 316 if (!base::CommandLine::ForCurrentProcess()->HasSwitch(
314 kMemoryPressureThresholds)) { 317 kMemoryPressureThresholds)) {
315 return base::MemoryPressureObserverChromeOS::THRESHOLD_DEFAULT; 318 return base::MemoryPressureObserverChromeOS::THRESHOLD_DEFAULT;
316 } 319 }
317 const std::string option = 320 const std::string option =
318 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( 321 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
319 kMemoryPressureThresholds); 322 kMemoryPressureThresholds);
320 if (option == "1") { 323 if (option == "1") {
321 return base::MemoryPressureObserverChromeOS::THRESHOLD_CONSERVATIVE; 324 return base::MemoryPressureObserverChromeOS::THRESHOLD_CONSERVATIVE;
322 } 325 }
323 if (option == "2") { 326 if (option == "2") {
324 return base::MemoryPressureObserverChromeOS:: 327 return base::MemoryPressureObserverChromeOS::
325 THRESHOLD_AGGRESSIVE_CACHE_DISCARD; 328 THRESHOLD_AGGRESSIVE_CACHE_DISCARD;
326 } 329 }
327 if (option == "3") { 330 if (option == "3") {
328 return base::MemoryPressureObserverChromeOS:: 331 return base::MemoryPressureObserverChromeOS::
329 THRESHOLD_AGGRESSIVE_TAB_DISCARD; 332 THRESHOLD_AGGRESSIVE_TAB_DISCARD;
330 } 333 }
331 return base::MemoryPressureObserverChromeOS::THRESHOLD_AGGRESSIVE; 334 return base::MemoryPressureObserverChromeOS::THRESHOLD_AGGRESSIVE;
332 } 335 }
333 336
334 } // namespace switches 337 } // namespace switches
335 } // namespace chromeos 338 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/chromeos_switches.h ('k') | chromeos/timezone/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698