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 // Always starts ARC after login screen without Play Store, not only for primary | |
Luis Héctor Chávez
2017/02/27 17:13:15
nit: we can make the wording stronger: "Always sta
victorhsieh
2017/02/28 18:57:33
Actually, ARC will run without account/profile. W
| |
59 // account, but also in most of the session such as Kiosk mode and guest mode. | |
60 // Node that secondary account won't be supported. Play Store opt-in is still | |
61 // required for user's account. | |
62 const char kAlwaysStartArc[] = "always-start-arc"; | |
Luis Héctor Chávez
2017/02/27 17:13:15
for consistency with all the other ARC flags, can
victorhsieh
2017/02/28 18:57:33
Done. Also renamed the functions accordingly.
| |
63 | |
58 // Specifies whether an app launched in kiosk mode was auto launched with zero | 64 // 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 | 65 // delay. Used in order to properly restore auto-launched state during session |
60 // restore flow. | 66 // restore flow. |
61 const char kAppAutoLaunched[] = "app-auto-launched"; | 67 const char kAppAutoLaunched[] = "app-auto-launched"; |
62 | 68 |
63 // Path for app's OEM manifest file. | 69 // Path for app's OEM manifest file. |
64 const char kAppOemManifestFile[] = "app-mode-oem-manifest"; | 70 const char kAppOemManifestFile[] = "app-mode-oem-manifest"; |
65 | 71 |
66 // Signals ARC support status on this device. This can take one of the | 72 // Signals ARC support status on this device. This can take one of the |
67 // following three values. | 73 // following three values. |
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
503 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); | 509 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); |
504 if (!command_line->HasSwitch(kTestCrosGaiaIdMigration)) | 510 if (!command_line->HasSwitch(kTestCrosGaiaIdMigration)) |
505 return false; | 511 return false; |
506 | 512 |
507 return command_line->GetSwitchValueASCII(kTestCrosGaiaIdMigration) == | 513 return command_line->GetSwitchValueASCII(kTestCrosGaiaIdMigration) == |
508 kTestCrosGaiaIdMigrationStarted; | 514 kTestCrosGaiaIdMigrationStarted; |
509 } | 515 } |
510 | 516 |
511 } // namespace switches | 517 } // namespace switches |
512 } // namespace chromeos | 518 } // namespace chromeos |
OLD | NEW |