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

Side by Side Diff: chromeos/chromeos_switches.cc

Issue 2031303003: ChromeOS: enable SystemTimezoneAutomaticDetectionPolicy by default. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix switch name. Created 4 years, 6 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 <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 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 // Forces CrOS region value. 360 // Forces CrOS region value.
361 const char kCrosRegion[] = "cros-region"; 361 const char kCrosRegion[] = "cros-region";
362 362
363 // Controls CrOS GaiaId migration for tests: 363 // Controls CrOS GaiaId migration for tests:
364 // "" - default, 364 // "" - default,
365 // "started" - migration started (i.e. all stored user keys will be converted 365 // "started" - migration started (i.e. all stored user keys will be converted
366 // to GaiaId). 366 // to GaiaId).
367 const char kTestCrosGaiaIdMigration[] = "test-cros-gaia-id-migration"; 367 const char kTestCrosGaiaIdMigration[] = "test-cros-gaia-id-migration";
368 const char kTestCrosGaiaIdMigrationStarted[] = "started"; 368 const char kTestCrosGaiaIdMigrationStarted[] = "started";
369 369
370 // This flag enables SystemTimezoneAutomaticDetection policy. 370 // This flag enables SystemTimezoneAutomaticDetection policy.
bartfab (slow) 2016/06/16 20:07:54 Nit: s/enables/disables/
Alexander Alekseev 2016/06/17 10:51:17 Done.
371 const char kEnableSystemTimezoneAutomaticDetectionPolicy[] = 371 const char kDisableSystemTimezoneAutomaticDetectionPolicy[] =
372 "enable-system-timezone-automatic-detection"; 372 "disable-system-timezone-automatic-detection";
373 373
374 // This flag enables material design OOBE UI. 374 // This flag enables material design OOBE UI.
375 const char kEnableMdOobe[] = "enable-md-oobe"; 375 const char kEnableMdOobe[] = "enable-md-oobe";
376 376
377 bool WakeOnWifiEnabled() { 377 bool WakeOnWifiEnabled() {
378 return !base::CommandLine::ForCurrentProcess()->HasSwitch(kDisableWakeOnWifi); 378 return !base::CommandLine::ForCurrentProcess()->HasSwitch(kDisableWakeOnWifi);
379 } 379 }
380 380
381 bool MemoryPressureHandlingEnabled() { 381 bool MemoryPressureHandlingEnabled() {
382 if (base::FieldTrialList::FindFullName(kMemoryPressureExperimentName) == 382 if (base::FieldTrialList::FindFullName(kMemoryPressureExperimentName) ==
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); 424 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
425 if (!command_line->HasSwitch(kTestCrosGaiaIdMigration)) 425 if (!command_line->HasSwitch(kTestCrosGaiaIdMigration))
426 return false; 426 return false;
427 427
428 return command_line->GetSwitchValueASCII(kTestCrosGaiaIdMigration) == 428 return command_line->GetSwitchValueASCII(kTestCrosGaiaIdMigration) ==
429 kTestCrosGaiaIdMigrationStarted; 429 kTestCrosGaiaIdMigrationStarted;
430 } 430 }
431 431
432 } // namespace switches 432 } // namespace switches
433 } // namespace chromeos 433 } // 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