| Index: chrome/browser/chromeos/arc/arc_auth_service.cc
|
| diff --git a/chrome/browser/chromeos/arc/arc_auth_service.cc b/chrome/browser/chromeos/arc/arc_auth_service.cc
|
| index 3aaffd8a7f8ea675eb0469d64de27c42d2199212..12c14050c22320a57a64ca9eb3521230a7fbf21b 100644
|
| --- a/chrome/browser/chromeos/arc/arc_auth_service.cc
|
| +++ b/chrome/browser/chromeos/arc/arc_auth_service.cc
|
| @@ -69,11 +69,6 @@ const char kStateStopped[] = "STOPPED";
|
| const char kStateFetchingCode[] = "FETCHING_CODE";
|
| const char kStateActive[] = "ACTIVE";
|
|
|
| -bool IsAccountManaged(Profile* profile) {
|
| - return policy::ProfilePolicyConnectorFactory::GetForBrowserContext(profile)
|
| - ->IsManaged();
|
| -}
|
| -
|
| bool IsArcDisabledForEnterprise() {
|
| return base::CommandLine::ForCurrentProcess()->HasSwitch(
|
| chromeos::switches::kEnterpriseDisableArc);
|
| @@ -184,6 +179,12 @@ void ArcAuthService::EnableCheckAndroidManagementForTesting() {
|
| }
|
|
|
| // static
|
| +bool ArcAuthService::IsAccountManaged(Profile* profile) {
|
| + return policy::ProfilePolicyConnectorFactory::GetForBrowserContext(profile)
|
| + ->IsManaged();
|
| +}
|
| +
|
| +// static
|
| bool ArcAuthService::IsAllowedForProfile(const Profile* profile) {
|
| if (!ArcBridgeService::GetEnabled(base::CommandLine::ForCurrentProcess())) {
|
| VLOG(1) << "Arc is not enabled.";
|
|
|