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 d9484ce7b209ab75da1c1bc269def940843cad84..2584e7c7d30d0815e641296deb1a332790008889 100644 |
--- a/chrome/browser/chromeos/arc/arc_auth_service.cc |
+++ b/chrome/browser/chromeos/arc/arc_auth_service.cc |
@@ -433,9 +433,10 @@ void ArcAuthService::OnRobotAuthCodeFetched( |
return; |
} |
- account_info_notifier_->Notify( |
- !IsOptInVerificationDisabled(), robot_auth_code, |
- mojom::ChromeAccountType::ROBOT_ACCOUNT, false); |
+ account_info_notifier_->Notify(!IsOptInVerificationDisabled(), |
+ robot_auth_code, |
+ mojom::ChromeAccountType::ROBOT_ACCOUNT, |
+ policy_util::IsAccountManaged(profile_)); |
account_info_notifier_.reset(); |
} |
@@ -473,7 +474,9 @@ void ArcAuthService::OnSignInComplete() { |
return; |
profile_->GetPrefs()->SetBoolean(prefs::kArcSignedIn, true); |
- if (!IsOptInVerificationDisabled()) { |
+ // Don't show Play Store app for ARC Kiosk because the only one UI in kiosk |
Nikita (slow)
2016/11/16 14:37:21
What would be the way to debug Play Store then?
I
Sergey Poromov
2016/11/16 15:06:21
This code auto-starts Play Store app on first sign
|
+ // mode must be the kiosk app and device is not needed for opt-in. |
+ if (!IsOptInVerificationDisabled() && !IsArcKioskMode()) { |
playstore_launcher_.reset( |
new ArcAppLauncher(profile_, kPlayStoreAppId, true)); |
} |