| OLD | NEW |
| 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 Loading... |
| 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 |
| 367 bool WakeOnWifiEnabled() { | 371 bool WakeOnWifiEnabled() { |
| 368 return !base::CommandLine::ForCurrentProcess()->HasSwitch(kDisableWakeOnWifi); | 372 return !base::CommandLine::ForCurrentProcess()->HasSwitch(kDisableWakeOnWifi); |
| 369 } | 373 } |
| 370 | 374 |
| 371 bool MemoryPressureHandlingEnabled() { | 375 bool MemoryPressureHandlingEnabled() { |
| 372 if (base::FieldTrialList::FindFullName(kMemoryPressureExperimentName) == | 376 if (base::FieldTrialList::FindFullName(kMemoryPressureExperimentName) == |
| 373 kMemoryPressureHandlingOff) { | 377 kMemoryPressureHandlingOff) { |
| 374 return false; | 378 return false; |
| 375 } | 379 } |
| 376 return true; | 380 return true; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 414 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); | 418 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); |
| 415 if (!command_line->HasSwitch(kTestCrosGaiaIdMigration)) | 419 if (!command_line->HasSwitch(kTestCrosGaiaIdMigration)) |
| 416 return false; | 420 return false; |
| 417 | 421 |
| 418 return command_line->GetSwitchValueASCII(kTestCrosGaiaIdMigration) == | 422 return command_line->GetSwitchValueASCII(kTestCrosGaiaIdMigration) == |
| 419 kTestCrosGaiaIdMigrationStarted; | 423 kTestCrosGaiaIdMigrationStarted; |
| 420 } | 424 } |
| 421 | 425 |
| 422 } // namespace switches | 426 } // namespace switches |
| 423 } // namespace chromeos | 427 } // namespace chromeos |
| OLD | NEW |