Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(232)

Side by Side Diff: chromeos/chromeos_switches.cc

Issue 2671463002: Support new --arc-availability flag. (Closed)
Patch Set: rebase Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chromeos/chromeos_switches.h ('k') | components/arc/arc_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 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 59 // delay. Used in order to properly restore auto-launched state during session
60 // restore flow. 60 // restore flow.
61 const char kAppAutoLaunched[] = "app-auto-launched"; 61 const char kAppAutoLaunched[] = "app-auto-launched";
62 62
63 // Path for app's OEM manifest file. 63 // Path for app's OEM manifest file.
64 const char kAppOemManifestFile[] = "app-mode-oem-manifest"; 64 const char kAppOemManifestFile[] = "app-mode-oem-manifest";
65 65
66 // Signals ARC support status on this device. This can take one of the
67 // following three values.
68 // - none: ARC is not installed on this device. (default)
69 // - installed: ARC is installed on this device, but not officially supported.
70 // Users can enable ARC only when Finch experiment is turned on.
71 // - officially-supported: ARC is installed and supported on this device. So
72 // users can enable ARC via settings etc.
73 const char kArcAvailability[] = "arc-availability";
74
75 // DEPRECATED: Please use --arc-availability=installed.
66 // Signals the availability of the ARC instance on this device. 76 // Signals the availability of the ARC instance on this device.
67 const char kArcAvailable[] = "arc-available"; 77 const char kArcAvailable[] = "arc-available";
68 78
69 // Screenshot testing: specifies the directoru where artifacts will be stored. 79 // Screenshot testing: specifies the directoru where artifacts will be stored.
70 const char kArtifactsDir[] = "artifacts-dir"; 80 const char kArtifactsDir[] = "artifacts-dir";
71 81
72 // When wallpaper boot animation is not disabled this switch 82 // When wallpaper boot animation is not disabled this switch
73 // is used to override OOBE/sign in WebUI init type. 83 // is used to override OOBE/sign in WebUI init type.
74 // Possible values: parallel|postpone. Default: parallel. 84 // Possible values: parallel|postpone. Default: parallel.
75 const char kAshWebUIInit[] = "ash-webui-init"; 85 const char kAshWebUIInit[] = "ash-webui-init";
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 219
210 // EAFE URL to use for Easy bootstrapping. 220 // EAFE URL to use for Easy bootstrapping.
211 const char kEafeUrl[] = "eafe-url"; 221 const char kEafeUrl[] = "eafe-url";
212 222
213 // Enables AD functionality. 223 // Enables AD functionality.
214 const char kEnableAd[] = "enable-ad"; 224 const char kEnableAd[] = "enable-ad";
215 225
216 // Enables the Android Wallpapers App as the default app on Chrome OS. 226 // Enables the Android Wallpapers App as the default app on Chrome OS.
217 const char kEnableAndroidWallpapersApp[] = "enable-android-wallpapers-app"; 227 const char kEnableAndroidWallpapersApp[] = "enable-android-wallpapers-app";
218 228
229 // DEPRECATED. Please use --arc-availability=officially-supported.
219 // Enables starting the ARC instance upon session start. 230 // Enables starting the ARC instance upon session start.
220 const char kEnableArc[] = "enable-arc"; 231 const char kEnableArc[] = "enable-arc";
221 232
222 // Enables ARC OptIn flow in OOBE. 233 // Enables ARC OptIn flow in OOBE.
223 const char kEnableArcOOBEOptIn[] = "enable-arc-oobe-optin"; 234 const char kEnableArcOOBEOptIn[] = "enable-arc-oobe-optin";
224 235
225 // Enables consume kiosk mode. 236 // Enables consume kiosk mode.
226 const char kEnableConsumerKiosk[] = "enable-consumer-kiosk"; 237 const char kEnableConsumerKiosk[] = "enable-consumer-kiosk";
227 238
228 // Enables Data Saver prompt on cellular networks. 239 // Enables Data Saver prompt on cellular networks.
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); 492 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
482 if (!command_line->HasSwitch(kTestCrosGaiaIdMigration)) 493 if (!command_line->HasSwitch(kTestCrosGaiaIdMigration))
483 return false; 494 return false;
484 495
485 return command_line->GetSwitchValueASCII(kTestCrosGaiaIdMigration) == 496 return command_line->GetSwitchValueASCII(kTestCrosGaiaIdMigration) ==
486 kTestCrosGaiaIdMigrationStarted; 497 kTestCrosGaiaIdMigrationStarted;
487 } 498 }
488 499
489 } // namespace switches 500 } // namespace switches
490 } // namespace chromeos 501 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/chromeos_switches.h ('k') | components/arc/arc_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698