| 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 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 487 // Enables wake on wifi packet feature, which wakes the device on the receipt | 487 // Enables wake on wifi packet feature, which wakes the device on the receipt |
| 488 // of network packets from whitelisted sources. | 488 // of network packets from whitelisted sources. |
| 489 const char kWakeOnWifiPacket[] = "wake-on-wifi-packet"; | 489 const char kWakeOnWifiPacket[] = "wake-on-wifi-packet"; |
| 490 | 490 |
| 491 // Force system compositor mode when set. | 491 // Force system compositor mode when set. |
| 492 const char kForceSystemCompositorMode[] = "force-system-compositor-mode"; | 492 const char kForceSystemCompositorMode[] = "force-system-compositor-mode"; |
| 493 | 493 |
| 494 // Enables testing for encryption migration UI. | 494 // Enables testing for encryption migration UI. |
| 495 const char kTestEncryptionMigrationUI[] = "test-encryption-migration-ui"; | 495 const char kTestEncryptionMigrationUI[] = "test-encryption-migration-ui"; |
| 496 | 496 |
| 497 // Forces use of Chrome OS Gaia API v1. |
| 498 const char kCrosGaiaApiV1[] = "cros-gaia-api-v1"; |
| 499 |
| 497 bool WakeOnWifiEnabled() { | 500 bool WakeOnWifiEnabled() { |
| 498 return !base::CommandLine::ForCurrentProcess()->HasSwitch(kDisableWakeOnWifi); | 501 return !base::CommandLine::ForCurrentProcess()->HasSwitch(kDisableWakeOnWifi); |
| 499 } | 502 } |
| 500 | 503 |
| 501 bool MemoryPressureHandlingEnabled() { | 504 bool MemoryPressureHandlingEnabled() { |
| 502 if (base::FieldTrialList::FindFullName(kMemoryPressureExperimentName) == | 505 if (base::FieldTrialList::FindFullName(kMemoryPressureExperimentName) == |
| 503 kMemoryPressureHandlingOff) { | 506 kMemoryPressureHandlingOff) { |
| 504 return false; | 507 return false; |
| 505 } | 508 } |
| 506 return true; | 509 return true; |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 554 } | 557 } |
| 555 | 558 |
| 556 bool IsVoiceInteractionEnabled() { | 559 bool IsVoiceInteractionEnabled() { |
| 557 return base::CommandLine::ForCurrentProcess()->HasSwitch( | 560 return base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 558 kEnableVoiceInteraction) || | 561 kEnableVoiceInteraction) || |
| 559 base::FeatureList::IsEnabled(kVoiceInteractionFeature); | 562 base::FeatureList::IsEnabled(kVoiceInteractionFeature); |
| 560 } | 563 } |
| 561 | 564 |
| 562 } // namespace switches | 565 } // namespace switches |
| 563 } // namespace chromeos | 566 } // namespace chromeos |
| OLD | NEW |