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

Unified Diff: chrome/browser/ui/ash/launcher/launcher_controller_helper.cc

Issue 2507073002: Split ArcSessionManager from ArcAuthService. (Closed)
Patch Set: Fix rebase mistake Created 4 years, 1 month 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/ui/ash/launcher/launcher_controller_helper.cc
diff --git a/chrome/browser/ui/ash/launcher/launcher_controller_helper.cc b/chrome/browser/ui/ash/launcher/launcher_controller_helper.cc
index 222623a9168a1b2495699961653dbe5d8415cdd5..4edc3b52e059862a803109a3a96b407ca5e37db3 100644
--- a/chrome/browser/ui/ash/launcher/launcher_controller_helper.cc
+++ b/chrome/browser/ui/ash/launcher/launcher_controller_helper.cc
@@ -151,13 +151,15 @@ bool LauncherControllerHelper::IsValidIDForCurrentUser(
if (!GetExtensionByID(profile_, id))
return false;
if (id == ArcSupportHost::kHostAppId) {
- if (!arc::ArcAuthService::IsAllowedForProfile(profile()))
+ if (!arc::ArcSessionManager::IsAllowedForProfile(profile()))
return false;
- const arc::ArcAuthService* arc_auth_service = arc::ArcAuthService::Get();
- DCHECK(arc_auth_service);
- if (!arc_auth_service->IsAllowed())
+ const arc::ArcSessionManager* arc_session_manager =
+ arc::ArcSessionManager::Get();
+ DCHECK(arc_session_manager);
+ if (!arc_session_manager->IsAllowed())
return false;
- if (!arc_auth_service->IsArcEnabled() && arc_auth_service->IsArcManaged())
+ if (!arc_session_manager->IsArcEnabled() &&
+ arc_session_manager->IsArcManaged())
return false;
}

Powered by Google App Engine
This is Rietveld 408576698