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 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 disables SystemTimezoneAutomaticDetection policy. |
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 Loading... |
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 |
OLD | NEW |