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

Unified Diff: components/arc/arc_util.cc

Issue 2707133006: Start ARC and sign in after Chrome OS login (Closed)
Patch Set: rebase + a few comment change per review 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
« chromeos/chromeos_switches.cc ('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..d6767b6729c0bddc6a0d2f0c7ac349fbb8f71bf8 100644
--- a/components/arc/arc_util.cc
+++ b/components/arc/arc_util.cc
@@ -59,6 +59,16 @@ bool IsArcAvailable() {
base::FeatureList::IsEnabled(kEnableArcFeature));
}
+bool ShouldArcAlwaysStart() {
+ return base::CommandLine::ForCurrentProcess()->HasSwitch(
+ chromeos::switches::kArcAlwaysStart);
+}
+
+void SetArcAlwaysStartForTesting() {
+ base::CommandLine::ForCurrentProcess()->AppendSwitch(
+ chromeos::switches::kArcAlwaysStart);
+}
+
bool IsArcKioskAvailable() {
const auto* command_line = base::CommandLine::ForCurrentProcess();
« chromeos/chromeos_switches.cc ('K') | « components/arc/arc_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698