| 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"; |
| 15 | 20 |
| 16 // Allows remote attestation (RA) in dev mode for testing purpose. Usually RA | 21 // Allows remote attestation (RA) in dev mode for testing purpose. Usually RA |
| 17 // is disabled in dev mode because it will always fail. However, there are cases | 22 // is disabled in dev mode because it will always fail. However, there are cases |
| 18 // in testing where we do want to go through the permission flow even in dev | 23 // in testing where we do want to go through the permission flow even in dev |
| 19 // mode. This can be enabled by this flag. | 24 // mode. This can be enabled by this flag. |
| 20 const char kAllowRAInDevMode[] = "allow-ra-in-dev-mode"; | 25 const char kAllowRAInDevMode[] = "allow-ra-in-dev-mode"; |
| 21 | 26 |
| 22 // Path for app's OEM manifest file. | 27 // Path for app's OEM manifest file. |
| 23 const char kAppOemManifestFile[] = "app-mode-oem-manifest"; | 28 const char kAppOemManifestFile[] = "app-mode-oem-manifest"; |
| 24 | 29 |
| (...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 397 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); | 402 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); |
| 398 if (!command_line->HasSwitch(kTestCrosGaiaIdMigration)) | 403 if (!command_line->HasSwitch(kTestCrosGaiaIdMigration)) |
| 399 return false; | 404 return false; |
| 400 | 405 |
| 401 return command_line->GetSwitchValueASCII(kTestCrosGaiaIdMigration) == | 406 return command_line->GetSwitchValueASCII(kTestCrosGaiaIdMigration) == |
| 402 kTestCrosGaiaIdMigrationStarted; | 407 kTestCrosGaiaIdMigrationStarted; |
| 403 } | 408 } |
| 404 | 409 |
| 405 } // namespace switches | 410 } // namespace switches |
| 406 } // namespace chromeos | 411 } // namespace chromeos |
| OLD | NEW |