| Index: components/arc/arc_util.cc
|
| diff --git a/components/arc/arc_util.cc b/components/arc/arc_util.cc
|
| index b2fbdd6afb4d9061d8740fb08bfea3f96474c9ea..d7e22dcf624ba68d61f0a627d827fbbdaa5aa61d 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 {
|
|
|
| @@ -35,4 +36,14 @@ void SetArcAvailableCommandLineForTesting(base::CommandLine* command_line) {
|
| command_line->AppendSwitch(chromeos::switches::kEnableArc);
|
| }
|
|
|
| +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
|
|
|