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

Side by Side Diff: chromeos/chromeos_switches.cc

Issue 898503002: Timezone auto update option should be available by default. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update histograms.xml 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') | tools/metrics/histograms/histograms.xml » ('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. 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
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
OLDNEW
« no previous file with comments | « chromeos/chromeos_switches.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698