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

Unified Diff: components/arc/arc_util.cc

Issue 2707133006: Start ARC and sign in after Chrome OS login (Closed)
Patch Set: test coverage in chrome_launcher_controller_impl_unittest.cc 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 side-by-side diff with in-line comments
Download patch
« components/arc/arc_util.h ('K') | « components/arc/arc_util.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/arc/arc_util.cc
diff --git a/components/arc/arc_util.cc b/components/arc/arc_util.cc
index bb876f03485aa5822295250110e3e4b6bbab4f29..130d2c62446f54827f2f7a0c07069c916b4d7dbc 100644
--- a/components/arc/arc_util.cc
+++ b/components/arc/arc_util.cc
@@ -59,6 +59,16 @@ bool IsArcAvailable() {
base::FeatureList::IsEnabled(kEnableArcFeature));
}
+bool ShouldAlwaysStartArc() {
+ return base::CommandLine::ForCurrentProcess()->HasSwitch(
+ chromeos::switches::kAlwaysStartArc);
+}
+
+void SetAlwaysStartArcForTesting() {
+ base::CommandLine::ForCurrentProcess()->AppendSwitch(
+ chromeos::switches::kAlwaysStartArc);
+}
+
bool IsArcKioskAvailable() {
const auto* command_line = base::CommandLine::ForCurrentProcess();
« components/arc/arc_util.h ('K') | « components/arc/arc_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698