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/feature_list.h" | 10 #include "base/feature_list.h" |
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
515 // Forces use of Chrome OS Gaia API v1. | 515 // Forces use of Chrome OS Gaia API v1. |
516 const char kCrosGaiaApiV1[] = "cros-gaia-api-v1"; | 516 const char kCrosGaiaApiV1[] = "cros-gaia-api-v1"; |
517 | 517 |
518 // List of locales supported by voice interaction. | 518 // List of locales supported by voice interaction. |
519 const char kVoiceInteractionLocales[] = "voice-interaction-supported-locales"; | 519 const char kVoiceInteractionLocales[] = "voice-interaction-supported-locales"; |
520 | 520 |
521 // Enables license type selection by user during enrollment. | 521 // Enables license type selection by user during enrollment. |
522 const char kEnterpriseEnableLicenseTypeSelection[] = | 522 const char kEnterpriseEnableLicenseTypeSelection[] = |
523 "enterprise-enable-license-type-selection"; | 523 "enterprise-enable-license-type-selection"; |
524 | 524 |
| 525 // Disables per-user timezone. |
| 526 const char kDisablePerUserTimezone[] = "disable-per-user-timezone"; |
| 527 |
525 bool WakeOnWifiEnabled() { | 528 bool WakeOnWifiEnabled() { |
526 return !base::CommandLine::ForCurrentProcess()->HasSwitch(kDisableWakeOnWifi); | 529 return !base::CommandLine::ForCurrentProcess()->HasSwitch(kDisableWakeOnWifi); |
527 } | 530 } |
528 | 531 |
529 bool MemoryPressureHandlingEnabled() { | 532 bool MemoryPressureHandlingEnabled() { |
530 if (base::FieldTrialList::FindFullName(kMemoryPressureExperimentName) == | 533 if (base::FieldTrialList::FindFullName(kMemoryPressureExperimentName) == |
531 kMemoryPressureHandlingOff) { | 534 kMemoryPressureHandlingOff) { |
532 return false; | 535 return false; |
533 } | 536 } |
534 return true; | 537 return true; |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
595 .find(locale) == std::string::npos) { | 598 .find(locale) == std::string::npos) { |
596 return false; | 599 return false; |
597 } | 600 } |
598 | 601 |
599 return command_line->HasSwitch(kEnableVoiceInteraction) || | 602 return command_line->HasSwitch(kEnableVoiceInteraction) || |
600 base::FeatureList::IsEnabled(kVoiceInteractionFeature); | 603 base::FeatureList::IsEnabled(kVoiceInteractionFeature); |
601 } | 604 } |
602 | 605 |
603 } // namespace switches | 606 } // namespace switches |
604 } // namespace chromeos | 607 } // namespace chromeos |
OLD | NEW |