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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 // tests don't have to mock out the policy infrastructure. | 48 // tests don't have to mock out the policy infrastructure. |
49 const char kAllowFailedPolicyFetchForTest[] = | 49 const char kAllowFailedPolicyFetchForTest[] = |
50 "allow-failed-policy-fetch-for-test"; | 50 "allow-failed-policy-fetch-for-test"; |
51 | 51 |
52 // Allows remote attestation (RA) in dev mode for testing purpose. Usually RA | 52 // Allows remote attestation (RA) in dev mode for testing purpose. Usually RA |
53 // is disabled in dev mode because it will always fail. However, there are cases | 53 // is disabled in dev mode because it will always fail. However, there are cases |
54 // in testing where we do want to go through the permission flow even in dev | 54 // in testing where we do want to go through the permission flow even in dev |
55 // mode. This can be enabled by this flag. | 55 // mode. This can be enabled by this flag. |
56 const char kAllowRAInDevMode[] = "allow-ra-in-dev-mode"; | 56 const char kAllowRAInDevMode[] = "allow-ra-in-dev-mode"; |
57 | 57 |
| 58 // Specifies whether an app launched in kiosk mode was auto launched with zero |
| 59 // delay. Used in order to properly restore auto-launched state during session |
| 60 // restore flow. |
| 61 const char kAppAutoLaunched[] = "app-auto-launched"; |
| 62 |
58 // Path for app's OEM manifest file. | 63 // Path for app's OEM manifest file. |
59 const char kAppOemManifestFile[] = "app-mode-oem-manifest"; | 64 const char kAppOemManifestFile[] = "app-mode-oem-manifest"; |
60 | 65 |
61 // Signals the availability of the ARC instance on this device. | 66 // Signals the availability of the ARC instance on this device. |
62 const char kArcAvailable[] = "arc-available"; | 67 const char kArcAvailable[] = "arc-available"; |
63 | 68 |
64 // Screenshot testing: specifies the directoru where artifacts will be stored. | 69 // Screenshot testing: specifies the directoru where artifacts will be stored. |
65 const char kArtifactsDir[] = "artifacts-dir"; | 70 const char kArtifactsDir[] = "artifacts-dir"; |
66 | 71 |
67 // When wallpaper boot animation is not disabled this switch | 72 // When wallpaper boot animation is not disabled this switch |
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
476 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); | 481 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); |
477 if (!command_line->HasSwitch(kTestCrosGaiaIdMigration)) | 482 if (!command_line->HasSwitch(kTestCrosGaiaIdMigration)) |
478 return false; | 483 return false; |
479 | 484 |
480 return command_line->GetSwitchValueASCII(kTestCrosGaiaIdMigration) == | 485 return command_line->GetSwitchValueASCII(kTestCrosGaiaIdMigration) == |
481 kTestCrosGaiaIdMigrationStarted; | 486 kTestCrosGaiaIdMigrationStarted; |
482 } | 487 } |
483 | 488 |
484 } // namespace switches | 489 } // namespace switches |
485 } // namespace chromeos | 490 } // namespace chromeos |
OLD | NEW |