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

Side by Side Diff: chromeos/chromeos_switches.cc

Issue 2671463002: Support new --arc-availability flag. (Closed)
Patch Set: 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
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.
Yusuke Sato 2017/02/02 18:14:06 .. The user can enable ARC only when it is enabled
hidehiko 2017/02/03 15:37:42 Done. I'd like to avoid "enable" for Finch so rewo
70 // - official-support: ARC is installed and supported on this device. So users
71 // can enable ARC via settings etc.
72 const char kArcAvailability[] = "arc-availability";
73
74 // DEPRECATED: Please use --arc-availability=installed.
66 // Signals the availability of the ARC instance on this device. 75 // Signals the availability of the ARC instance on this device.
67 const char kArcAvailable[] = "arc-available"; 76 const char kArcAvailable[] = "arc-available";
68 77
69 // Screenshot testing: specifies the directoru where artifacts will be stored. 78 // Screenshot testing: specifies the directoru where artifacts will be stored.
70 const char kArtifactsDir[] = "artifacts-dir"; 79 const char kArtifactsDir[] = "artifacts-dir";
71 80
72 // When wallpaper boot animation is not disabled this switch 81 // When wallpaper boot animation is not disabled this switch
73 // is used to override OOBE/sign in WebUI init type. 82 // is used to override OOBE/sign in WebUI init type.
74 // Possible values: parallel|postpone. Default: parallel. 83 // Possible values: parallel|postpone. Default: parallel.
75 const char kAshWebUIInit[] = "ash-webui-init"; 84 const char kAshWebUIInit[] = "ash-webui-init";
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 218
210 // EAFE URL to use for Easy bootstrapping. 219 // EAFE URL to use for Easy bootstrapping.
211 const char kEafeUrl[] = "eafe-url"; 220 const char kEafeUrl[] = "eafe-url";
212 221
213 // Enables AD functionality. 222 // Enables AD functionality.
214 const char kEnableAd[] = "enable-ad"; 223 const char kEnableAd[] = "enable-ad";
215 224
216 // Enables the Android Wallpapers App as the default app on Chrome OS. 225 // Enables the Android Wallpapers App as the default app on Chrome OS.
217 const char kEnableAndroidWallpapersApp[] = "enable-android-wallpapers-app"; 226 const char kEnableAndroidWallpapersApp[] = "enable-android-wallpapers-app";
218 227
228 // DEPRECATED. Please use --arc-availability=official-support.
219 // Enables starting the ARC instance upon session start. 229 // Enables starting the ARC instance upon session start.
220 const char kEnableArc[] = "enable-arc"; 230 const char kEnableArc[] = "enable-arc";
221 231
222 // Enables ARC OptIn flow in OOBE. 232 // Enables ARC OptIn flow in OOBE.
223 const char kEnableArcOOBEOptIn[] = "enable-arc-oobe-optin"; 233 const char kEnableArcOOBEOptIn[] = "enable-arc-oobe-optin";
224 234
225 // Enables consume kiosk mode. 235 // Enables consume kiosk mode.
226 const char kEnableConsumerKiosk[] = "enable-consumer-kiosk"; 236 const char kEnableConsumerKiosk[] = "enable-consumer-kiosk";
227 237
228 // Enables Data Saver prompt on cellular networks. 238 // 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(); 491 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
482 if (!command_line->HasSwitch(kTestCrosGaiaIdMigration)) 492 if (!command_line->HasSwitch(kTestCrosGaiaIdMigration))
483 return false; 493 return false;
484 494
485 return command_line->GetSwitchValueASCII(kTestCrosGaiaIdMigration) == 495 return command_line->GetSwitchValueASCII(kTestCrosGaiaIdMigration) ==
486 kTestCrosGaiaIdMigrationStarted; 496 kTestCrosGaiaIdMigrationStarted;
487 } 497 }
488 498
489 } // namespace switches 499 } // namespace switches
490 } // namespace chromeos 500 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698