| 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/metrics/field_trial.h" | 10 #include "base/metrics/field_trial.h" |
| (...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 411 // Enables testing for auto update UI. | 411 // Enables testing for auto update UI. |
| 412 const char kTestAutoUpdateUI[] = "test-auto-update-ui"; | 412 const char kTestAutoUpdateUI[] = "test-auto-update-ui"; |
| 413 | 413 |
| 414 // Determines which Google Privacy CA to use for attestation. | 414 // Determines which Google Privacy CA to use for attestation. |
| 415 const char kAttestationServer[] = "attestation-server"; | 415 const char kAttestationServer[] = "attestation-server"; |
| 416 | 416 |
| 417 // Enables wake on wifi packet feature, which wakes the device on the receipt | 417 // Enables wake on wifi packet feature, which wakes the device on the receipt |
| 418 // of network packets from whitelisted sources. | 418 // of network packets from whitelisted sources. |
| 419 const char kWakeOnWifiPacket[] = "wake-on-wifi-packet"; | 419 const char kWakeOnWifiPacket[] = "wake-on-wifi-packet"; |
| 420 | 420 |
| 421 // Force system compositor mode when set. |
| 422 const char kForceSystemCompositorMode[] = "force-system-compositor-mode"; |
| 423 |
| 421 bool WakeOnWifiEnabled() { | 424 bool WakeOnWifiEnabled() { |
| 422 return !base::CommandLine::ForCurrentProcess()->HasSwitch(kDisableWakeOnWifi); | 425 return !base::CommandLine::ForCurrentProcess()->HasSwitch(kDisableWakeOnWifi); |
| 423 } | 426 } |
| 424 | 427 |
| 425 bool MemoryPressureHandlingEnabled() { | 428 bool MemoryPressureHandlingEnabled() { |
| 426 if (base::FieldTrialList::FindFullName(kMemoryPressureExperimentName) == | 429 if (base::FieldTrialList::FindFullName(kMemoryPressureExperimentName) == |
| 427 kMemoryPressureHandlingOff) { | 430 kMemoryPressureHandlingOff) { |
| 428 return false; | 431 return false; |
| 429 } | 432 } |
| 430 return true; | 433 return true; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 468 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); | 471 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); |
| 469 if (!command_line->HasSwitch(kTestCrosGaiaIdMigration)) | 472 if (!command_line->HasSwitch(kTestCrosGaiaIdMigration)) |
| 470 return false; | 473 return false; |
| 471 | 474 |
| 472 return command_line->GetSwitchValueASCII(kTestCrosGaiaIdMigration) == | 475 return command_line->GetSwitchValueASCII(kTestCrosGaiaIdMigration) == |
| 473 kTestCrosGaiaIdMigrationStarted; | 476 kTestCrosGaiaIdMigrationStarted; |
| 474 } | 477 } |
| 475 | 478 |
| 476 } // namespace switches | 479 } // namespace switches |
| 477 } // namespace chromeos | 480 } // namespace chromeos |
| OLD | NEW |