| 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 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 405 // This option is for testing the chromeos build of chrome on the desktop only. | 405 // This option is for testing the chromeos build of chrome on the desktop only. |
| 406 const char kStubCrosSettings[] = "stub-cros-settings"; | 406 const char kStubCrosSettings[] = "stub-cros-settings"; |
| 407 | 407 |
| 408 // Indicates that the system is running in dev mode. The dev mode probing is | 408 // Indicates that the system is running in dev mode. The dev mode probing is |
| 409 // done by session manager. | 409 // done by session manager. |
| 410 const char kSystemDevMode[] = "system-developer-mode"; | 410 const char kSystemDevMode[] = "system-developer-mode"; |
| 411 | 411 |
| 412 // Enables testing for auto update UI. | 412 // Enables testing for auto update UI. |
| 413 const char kTestAutoUpdateUI[] = "test-auto-update-ui"; | 413 const char kTestAutoUpdateUI[] = "test-auto-update-ui"; |
| 414 | 414 |
| 415 // Determines which Google Privacy CA to use for attestation. |
| 416 const char kAttestationServer[] = "attestation-server"; |
| 417 |
| 415 // Enables wake on wifi packet feature, which wakes the device on the receipt | 418 // Enables wake on wifi packet feature, which wakes the device on the receipt |
| 416 // of network packets from whitelisted sources. | 419 // of network packets from whitelisted sources. |
| 417 const char kWakeOnWifiPacket[] = "wake-on-wifi-packet"; | 420 const char kWakeOnWifiPacket[] = "wake-on-wifi-packet"; |
| 418 | 421 |
| 419 bool WakeOnWifiEnabled() { | 422 bool WakeOnWifiEnabled() { |
| 420 return !base::CommandLine::ForCurrentProcess()->HasSwitch(kDisableWakeOnWifi); | 423 return !base::CommandLine::ForCurrentProcess()->HasSwitch(kDisableWakeOnWifi); |
| 421 } | 424 } |
| 422 | 425 |
| 423 bool MemoryPressureHandlingEnabled() { | 426 bool MemoryPressureHandlingEnabled() { |
| 424 if (base::FieldTrialList::FindFullName(kMemoryPressureExperimentName) == | 427 if (base::FieldTrialList::FindFullName(kMemoryPressureExperimentName) == |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 466 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); | 469 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); |
| 467 if (!command_line->HasSwitch(kTestCrosGaiaIdMigration)) | 470 if (!command_line->HasSwitch(kTestCrosGaiaIdMigration)) |
| 468 return false; | 471 return false; |
| 469 | 472 |
| 470 return command_line->GetSwitchValueASCII(kTestCrosGaiaIdMigration) == | 473 return command_line->GetSwitchValueASCII(kTestCrosGaiaIdMigration) == |
| 471 kTestCrosGaiaIdMigrationStarted; | 474 kTestCrosGaiaIdMigrationStarted; |
| 472 } | 475 } |
| 473 | 476 |
| 474 } // namespace switches | 477 } // namespace switches |
| 475 } // namespace chromeos | 478 } // namespace chromeos |
| OLD | NEW |