Index: components/arc/arc_util.cc |
diff --git a/components/arc/arc_util.cc b/components/arc/arc_util.cc |
index 339f6cb234684131dd3a15a98d92739d117084fd..7c3ee3f5a080b7e1b4d0b82dc0bbc686873c5b5e 100644 |
--- a/components/arc/arc_util.cc |
+++ b/components/arc/arc_util.cc |
@@ -55,6 +55,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(); |