summaryrefslogtreecommitdiff
path: root/chromium/components/arc/arc_util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/components/arc/arc_util.cc')
-rw-r--r--chromium/components/arc/arc_util.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/chromium/components/arc/arc_util.cc b/chromium/components/arc/arc_util.cc
index 339f6cb2346..7c3ee3f5a08 100644
--- a/chromium/components/arc/arc_util.cc
+++ b/chromium/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();