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 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
493 | 493 |
494 // Force system compositor mode when set. | 494 // Force system compositor mode when set. |
495 const char kForceSystemCompositorMode[] = "force-system-compositor-mode"; | 495 const char kForceSystemCompositorMode[] = "force-system-compositor-mode"; |
496 | 496 |
497 // Enables testing for encryption migration UI. | 497 // Enables testing for encryption migration UI. |
498 const char kTestEncryptionMigrationUI[] = "test-encryption-migration-ui"; | 498 const char kTestEncryptionMigrationUI[] = "test-encryption-migration-ui"; |
499 | 499 |
500 // Forces use of Chrome OS Gaia API v1. | 500 // Forces use of Chrome OS Gaia API v1. |
501 const char kCrosGaiaApiV1[] = "cros-gaia-api-v1"; | 501 const char kCrosGaiaApiV1[] = "cros-gaia-api-v1"; |
502 | 502 |
| 503 // Enables license type selection by user during enrollment. |
| 504 const char kEnterpriseEnableLicenseTypeSelection[] = |
| 505 "enterprise-enable-license-type-selection"; |
| 506 |
503 bool WakeOnWifiEnabled() { | 507 bool WakeOnWifiEnabled() { |
504 return !base::CommandLine::ForCurrentProcess()->HasSwitch(kDisableWakeOnWifi); | 508 return !base::CommandLine::ForCurrentProcess()->HasSwitch(kDisableWakeOnWifi); |
505 } | 509 } |
506 | 510 |
507 bool MemoryPressureHandlingEnabled() { | 511 bool MemoryPressureHandlingEnabled() { |
508 if (base::FieldTrialList::FindFullName(kMemoryPressureExperimentName) == | 512 if (base::FieldTrialList::FindFullName(kMemoryPressureExperimentName) == |
509 kMemoryPressureHandlingOff) { | 513 kMemoryPressureHandlingOff) { |
510 return false; | 514 return false; |
511 } | 515 } |
512 return true; | 516 return true; |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
560 } | 564 } |
561 | 565 |
562 bool IsVoiceInteractionEnabled() { | 566 bool IsVoiceInteractionEnabled() { |
563 return base::CommandLine::ForCurrentProcess()->HasSwitch( | 567 return base::CommandLine::ForCurrentProcess()->HasSwitch( |
564 kEnableVoiceInteraction) || | 568 kEnableVoiceInteraction) || |
565 base::FeatureList::IsEnabled(kVoiceInteractionFeature); | 569 base::FeatureList::IsEnabled(kVoiceInteractionFeature); |
566 } | 570 } |
567 | 571 |
568 } // namespace switches | 572 } // namespace switches |
569 } // namespace chromeos | 573 } // namespace chromeos |
OLD | NEW |