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

Side by Side Diff: chromeos/chromeos_switches.cc

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

Powered by Google App Engine
This is Rietveld 408576698