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

Side by Side Diff: chromeos/chromeos_switches.cc

Issue 1836433003: ChromeOS: Add SystemTimezoneAutomaticDetection policy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 4 years, 8 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/timezone_resolver.h » ('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 #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 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 // Forces CrOS region value. 353 // Forces CrOS region value.
354 const char kCrosRegion[] = "cros-region"; 354 const char kCrosRegion[] = "cros-region";
355 355
356 // Controls CrOS GaiaId migration for tests: 356 // Controls CrOS GaiaId migration for tests:
357 // "" - default, 357 // "" - default,
358 // "started" - migration started (i.e. all stored user keys will be converted 358 // "started" - migration started (i.e. all stored user keys will be converted
359 // to GaiaId). 359 // to GaiaId).
360 const char kTestCrosGaiaIdMigration[] = "test-cros-gaia-id-migration"; 360 const char kTestCrosGaiaIdMigration[] = "test-cros-gaia-id-migration";
361 const char kTestCrosGaiaIdMigrationStarted[] = "started"; 361 const char kTestCrosGaiaIdMigrationStarted[] = "started";
362 362
363 // This flag enables SystemTimezoneAutomaticDetection policy.
364 const char kEnableSystemTimezoneAutomaticDetectionPolicy[] =
365 "enable-system-timezone-automatic-detection";
366
363 bool WakeOnWifiEnabled() { 367 bool WakeOnWifiEnabled() {
364 return !base::CommandLine::ForCurrentProcess()->HasSwitch(kDisableWakeOnWifi); 368 return !base::CommandLine::ForCurrentProcess()->HasSwitch(kDisableWakeOnWifi);
365 } 369 }
366 370
367 bool MemoryPressureHandlingEnabled() { 371 bool MemoryPressureHandlingEnabled() {
368 if (base::FieldTrialList::FindFullName(kMemoryPressureExperimentName) == 372 if (base::FieldTrialList::FindFullName(kMemoryPressureExperimentName) ==
369 kMemoryPressureHandlingOff) { 373 kMemoryPressureHandlingOff) {
370 return false; 374 return false;
371 } 375 }
372 return true; 376 return true;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); 414 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
411 if (!command_line->HasSwitch(kTestCrosGaiaIdMigration)) 415 if (!command_line->HasSwitch(kTestCrosGaiaIdMigration))
412 return false; 416 return false;
413 417
414 return command_line->GetSwitchValueASCII(kTestCrosGaiaIdMigration) == 418 return command_line->GetSwitchValueASCII(kTestCrosGaiaIdMigration) ==
415 kTestCrosGaiaIdMigrationStarted; 419 kTestCrosGaiaIdMigrationStarted;
416 } 420 }
417 421
418 } // namespace switches 422 } // namespace switches
419 } // namespace chromeos 423 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/chromeos_switches.h ('k') | chromeos/timezone/timezone_resolver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698