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

Unified Diff: components/arc/arc_util.cc

Issue 2642783003: Move more utility functions to arc_util. (Closed)
Patch Set: address review comments Created 3 years, 11 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
Index: components/arc/arc_util.cc
diff --git a/components/arc/arc_util.cc b/components/arc/arc_util.cc
index 46367d021f901288dfe5c1e2d7712e7b7d511ae4..4df5b4024e2880db9299d9d31f9d92f7d13986cd 100644
--- a/components/arc/arc_util.cc
+++ b/components/arc/arc_util.cc
@@ -7,6 +7,7 @@
#include "base/command_line.h"
#include "base/feature_list.h"
#include "chromeos/chromeos_switches.h"
+#include "components/user_manager/user_manager.h"
namespace arc {
@@ -28,4 +29,14 @@ bool IsArcAvailable() {
base::FeatureList::IsEnabled(kEnableArcFeature));
}
+bool IsArcKioskMode() {
+ return user_manager::UserManager::Get()->IsLoggedInAsArcKioskApp();
+}
+
+bool IsArcOptInVerificationDisabled() {
+ const auto* command_line = base::CommandLine::ForCurrentProcess();
+ return command_line->HasSwitch(
+ chromeos::switches::kDisableArcOptInVerification);
+}
+
} // namespace arc

Powered by Google App Engine
This is Rietveld 408576698