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

Side by Side Diff: chromeos/chromeos_switches.cc

Issue 2977033002: Mixed Licenses Enrollment (Closed)
Patch Set: Fix CloudPolicyClientTest Created 3 years, 4 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
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/feature_list.h" 10 #include "base/feature_list.h"
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 508
509 // Enables testing for encryption migration UI. 509 // Enables testing for encryption migration UI.
510 const char kTestEncryptionMigrationUI[] = "test-encryption-migration-ui"; 510 const char kTestEncryptionMigrationUI[] = "test-encryption-migration-ui";
511 511
512 // Forces use of Chrome OS Gaia API v1. 512 // Forces use of Chrome OS Gaia API v1.
513 const char kCrosGaiaApiV1[] = "cros-gaia-api-v1"; 513 const char kCrosGaiaApiV1[] = "cros-gaia-api-v1";
514 514
515 // List of locales supported by voice interaction. 515 // List of locales supported by voice interaction.
516 const char kVoiceInteractionLocales[] = "voice-interaction-supported-locales"; 516 const char kVoiceInteractionLocales[] = "voice-interaction-supported-locales";
517 517
518 // Enables license type selection by user during enrollment.
519 const char kEnterpriseEnableLicenseTypeSelection[] =
520 "enterprise-enable-license-type-selection";
521
518 bool WakeOnWifiEnabled() { 522 bool WakeOnWifiEnabled() {
519 return !base::CommandLine::ForCurrentProcess()->HasSwitch(kDisableWakeOnWifi); 523 return !base::CommandLine::ForCurrentProcess()->HasSwitch(kDisableWakeOnWifi);
520 } 524 }
521 525
522 bool MemoryPressureHandlingEnabled() { 526 bool MemoryPressureHandlingEnabled() {
523 if (base::FieldTrialList::FindFullName(kMemoryPressureExperimentName) == 527 if (base::FieldTrialList::FindFullName(kMemoryPressureExperimentName) ==
524 kMemoryPressureHandlingOff) { 528 kMemoryPressureHandlingOff) {
525 return false; 529 return false;
526 } 530 }
527 return true; 531 return true;
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
588 .find(locale) == std::string::npos) { 592 .find(locale) == std::string::npos) {
589 return false; 593 return false;
590 } 594 }
591 595
592 return command_line->HasSwitch(kEnableVoiceInteraction) || 596 return command_line->HasSwitch(kEnableVoiceInteraction) ||
593 base::FeatureList::IsEnabled(kVoiceInteractionFeature); 597 base::FeatureList::IsEnabled(kVoiceInteractionFeature);
594 } 598 }
595 599
596 } // namespace switches 600 } // namespace switches
597 } // namespace chromeos 601 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698