Chromium Code Reviews| 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 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 488 | 488 |
| 489 // Force system compositor mode when set. | 489 // Force system compositor mode when set. |
| 490 const char kForceSystemCompositorMode[] = "force-system-compositor-mode"; | 490 const char kForceSystemCompositorMode[] = "force-system-compositor-mode"; |
| 491 | 491 |
| 492 // Enables testing for encryption migration UI. | 492 // Enables testing for encryption migration UI. |
| 493 const char kTestEncryptionMigrationUI[] = "test-encryption-migration-ui"; | 493 const char kTestEncryptionMigrationUI[] = "test-encryption-migration-ui"; |
| 494 | 494 |
| 495 // Forces use of Chrome OS Gaia API v1. | 495 // Forces use of Chrome OS Gaia API v1. |
| 496 const char kCrosGaiaApiV1[] = "cros-gaia-api-v1"; | 496 const char kCrosGaiaApiV1[] = "cros-gaia-api-v1"; |
| 497 | 497 |
| 498 // Disables per-user timezone | |
|
michaelpg
2017/07/24 06:57:40
nit: ending period
Alexander Alekseev
2017/07/29 06:10:16
Done.
| |
| 499 const char kDisablePerUserTimezone[] = "disable-per-user-timezone"; | |
| 500 | |
| 498 bool WakeOnWifiEnabled() { | 501 bool WakeOnWifiEnabled() { |
| 499 return !base::CommandLine::ForCurrentProcess()->HasSwitch(kDisableWakeOnWifi); | 502 return !base::CommandLine::ForCurrentProcess()->HasSwitch(kDisableWakeOnWifi); |
| 500 } | 503 } |
| 501 | 504 |
| 502 bool MemoryPressureHandlingEnabled() { | 505 bool MemoryPressureHandlingEnabled() { |
| 503 if (base::FieldTrialList::FindFullName(kMemoryPressureExperimentName) == | 506 if (base::FieldTrialList::FindFullName(kMemoryPressureExperimentName) == |
| 504 kMemoryPressureHandlingOff) { | 507 kMemoryPressureHandlingOff) { |
| 505 return false; | 508 return false; |
| 506 } | 509 } |
| 507 return true; | 510 return true; |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 555 } | 558 } |
| 556 | 559 |
| 557 bool IsVoiceInteractionEnabled() { | 560 bool IsVoiceInteractionEnabled() { |
| 558 return base::CommandLine::ForCurrentProcess()->HasSwitch( | 561 return base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 559 kEnableVoiceInteraction) || | 562 kEnableVoiceInteraction) || |
| 560 base::FeatureList::IsEnabled(kVoiceInteractionFeature); | 563 base::FeatureList::IsEnabled(kVoiceInteractionFeature); |
| 561 } | 564 } |
| 562 | 565 |
| 563 } // namespace switches | 566 } // namespace switches |
| 564 } // namespace chromeos | 567 } // namespace chromeos |
| OLD | NEW |