| 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 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 476 // Enables wake on wifi packet feature, which wakes the device on the receipt | 476 // Enables wake on wifi packet feature, which wakes the device on the receipt |
| 477 // of network packets from whitelisted sources. | 477 // of network packets from whitelisted sources. |
| 478 const char kWakeOnWifiPacket[] = "wake-on-wifi-packet"; | 478 const char kWakeOnWifiPacket[] = "wake-on-wifi-packet"; |
| 479 | 479 |
| 480 // Force system compositor mode when set. | 480 // Force system compositor mode when set. |
| 481 const char kForceSystemCompositorMode[] = "force-system-compositor-mode"; | 481 const char kForceSystemCompositorMode[] = "force-system-compositor-mode"; |
| 482 | 482 |
| 483 // Enables testing for encryption migration UI. | 483 // Enables testing for encryption migration UI. |
| 484 const char kTestEncryptionMigrationUI[] = "test-encryption-migration-ui"; | 484 const char kTestEncryptionMigrationUI[] = "test-encryption-migration-ui"; |
| 485 | 485 |
| 486 // Disables per-user timezone |
| 487 const char kDisablePerUserTimezone[] = "disable-per-user-timezone"; |
| 488 |
| 486 bool WakeOnWifiEnabled() { | 489 bool WakeOnWifiEnabled() { |
| 487 return !base::CommandLine::ForCurrentProcess()->HasSwitch(kDisableWakeOnWifi); | 490 return !base::CommandLine::ForCurrentProcess()->HasSwitch(kDisableWakeOnWifi); |
| 488 } | 491 } |
| 489 | 492 |
| 490 bool MemoryPressureHandlingEnabled() { | 493 bool MemoryPressureHandlingEnabled() { |
| 491 if (base::FieldTrialList::FindFullName(kMemoryPressureExperimentName) == | 494 if (base::FieldTrialList::FindFullName(kMemoryPressureExperimentName) == |
| 492 kMemoryPressureHandlingOff) { | 495 kMemoryPressureHandlingOff) { |
| 493 return false; | 496 return false; |
| 494 } | 497 } |
| 495 return true; | 498 return true; |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 543 } | 546 } |
| 544 | 547 |
| 545 bool IsVoiceInteractionEnabled() { | 548 bool IsVoiceInteractionEnabled() { |
| 546 return base::CommandLine::ForCurrentProcess()->HasSwitch( | 549 return base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 547 kEnableVoiceInteraction) || | 550 kEnableVoiceInteraction) || |
| 548 base::FeatureList::IsEnabled(kVoiceInteractionFeature); | 551 base::FeatureList::IsEnabled(kVoiceInteractionFeature); |
| 549 } | 552 } |
| 550 | 553 |
| 551 } // namespace switches | 554 } // namespace switches |
| 552 } // namespace chromeos | 555 } // namespace chromeos |
| OLD | NEW |