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

Unified Diff: chrome/browser/chromeos/arc/auth/arc_auth_service.cc

Issue 2926893002: arc: Start ARC for Public Session users.
Patch Set: Hide Play Store Created 3 years, 3 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: chrome/browser/chromeos/arc/auth/arc_auth_service.cc
diff --git a/chrome/browser/chromeos/arc/auth/arc_auth_service.cc b/chrome/browser/chromeos/arc/auth/arc_auth_service.cc
index e6632a4680403426e4413cf44ae0f51bb22b2b6f..93c92fff1c2e7f1a2e0f3c11b7223ab7c7d941db 100644
--- a/chrome/browser/chromeos/arc/auth/arc_auth_service.cc
+++ b/chrome/browser/chromeos/arc/auth/arc_auth_service.cc
@@ -88,8 +88,8 @@ ProvisioningResult ConvertArcSignInFailureReasonToProvisioningResult(
}
mojom::ChromeAccountType GetAccountType() {
- return IsArcKioskMode() ? mojom::ChromeAccountType::ROBOT_ACCOUNT
- : mojom::ChromeAccountType::USER_ACCOUNT;
+ return IsRobotAccountMode() ? mojom::ChromeAccountType::ROBOT_ACCOUNT
+ : mojom::ChromeAccountType::USER_ACCOUNT;
}
} // namespace
@@ -255,7 +255,7 @@ void ArcAuthService::GetAuthCodeDeprecated(
const GetAuthCodeDeprecatedCallback& callback) {
// For robot account we must use RequestAccountInfo because it allows
// to specify account type.
- DCHECK(!IsArcKioskMode());
+ DCHECK(!IsRobotAccountMode());
RequestAccountInfoInternal(
base::MakeUnique<ArcAuthService::AccountInfoNotifier>(callback));
}
@@ -303,8 +303,8 @@ void ArcAuthService::RequestAccountInfoInternal(
}
// For non-AD enrolled devices an auth code is fetched.
std::unique_ptr<ArcAuthCodeFetcher> auth_code_fetcher;
- if (IsArcKioskMode()) {
- // In Kiosk mode, use Robot auth code fetching.
+ if (IsRobotAccountMode()) {
+ // In Kiosk and public session mode, use Robot auth code fetching.
auth_code_fetcher = base::MakeUnique<ArcRobotAuthCodeFetcher>();
} else {
// Optionally retrieve auth code in silent mode.

Powered by Google App Engine
This is Rietveld 408576698