| 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
|
|
|