| 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 "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/metrics/field_trial.h" | 8 #include "base/metrics/field_trial.h" |
| 9 | 9 |
| 10 // TODO(rsorokin): alphabetize all of these switches so they | 10 // TODO(rsorokin): alphabetize all of these switches so they |
| 11 // match the order from the .h file | 11 // match the order from the .h file |
| 12 | 12 |
| 13 namespace chromeos { | 13 namespace chromeos { |
| 14 namespace switches { | 14 namespace switches { |
| 15 // If this flag is passed, failed policy fetches will not cause profile | |
| 16 // initialization to fail. This is useful for tests because it means that | |
| 17 // tests don't have to mock out the policy infrastructure. | |
| 18 const char kAllowFailedPolicyFetchForTest[] = | |
| 19 "allow-failed-policy-fetch-for-test"; | |
| 20 | 15 |
| 21 // Allows remote attestation (RA) in dev mode for testing purpose. Usually RA | 16 // Allows remote attestation (RA) in dev mode for testing purpose. Usually RA |
| 22 // is disabled in dev mode because it will always fail. However, there are cases | 17 // is disabled in dev mode because it will always fail. However, there are cases |
| 23 // in testing where we do want to go through the permission flow even in dev | 18 // in testing where we do want to go through the permission flow even in dev |
| 24 // mode. This can be enabled by this flag. | 19 // mode. This can be enabled by this flag. |
| 25 const char kAllowRAInDevMode[] = "allow-ra-in-dev-mode"; | 20 const char kAllowRAInDevMode[] = "allow-ra-in-dev-mode"; |
| 26 | 21 |
| 27 // Path for app's OEM manifest file. | 22 // Path for app's OEM manifest file. |
| 28 const char kAppOemManifestFile[] = "app-mode-oem-manifest"; | 23 const char kAppOemManifestFile[] = "app-mode-oem-manifest"; |
| 29 | 24 |
| (...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 402 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); | 397 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); |
| 403 if (!command_line->HasSwitch(kTestCrosGaiaIdMigration)) | 398 if (!command_line->HasSwitch(kTestCrosGaiaIdMigration)) |
| 404 return false; | 399 return false; |
| 405 | 400 |
| 406 return command_line->GetSwitchValueASCII(kTestCrosGaiaIdMigration) == | 401 return command_line->GetSwitchValueASCII(kTestCrosGaiaIdMigration) == |
| 407 kTestCrosGaiaIdMigrationStarted; | 402 kTestCrosGaiaIdMigrationStarted; |
| 408 } | 403 } |
| 409 | 404 |
| 410 } // namespace switches | 405 } // namespace switches |
| 411 } // namespace chromeos | 406 } // namespace chromeos |
| OLD | NEW |