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

Unified Diff: chrome/browser/ui/app_list/arc/arc_app_utils.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/app_list/arc/arc_app_utils.cc
diff --git a/chrome/browser/ui/app_list/arc/arc_app_utils.cc b/chrome/browser/ui/app_list/arc/arc_app_utils.cc
index b75f830d3caeb5be8fea6563262c4c70dafc3a95..a120f6474a876159f94a80c28195ebb249bf404c 100644
--- a/chrome/browser/ui/app_list/arc/arc_app_utils.cc
+++ b/chrome/browser/ui/app_list/arc/arc_app_utils.cc
@@ -221,18 +221,18 @@ bool LaunchApp(content::BrowserContext* context,
ArcAppListPrefs* prefs = ArcAppListPrefs::Get(context);
std::unique_ptr<ArcAppListPrefs::AppInfo> app_info = prefs->GetApp(app_id);
if (app_info && !app_info->ready) {
- ArcAuthService* auth_service = ArcAuthService::Get();
- DCHECK(auth_service);
+ ArcSessionManager* arc_session_manager = ArcSessionManager::Get();
+ DCHECK(arc_session_manager);
bool arc_activated = false;
- if (!auth_service->IsArcEnabled()) {
+ if (!arc_session_manager->IsArcEnabled()) {
if (!prefs->IsDefault(app_id)) {
NOTREACHED();
return false;
}
- auth_service->EnableArc();
- if (!auth_service->IsArcEnabled()) {
+ arc_session_manager->EnableArc();
+ if (!arc_session_manager->IsArcEnabled()) {
NOTREACHED();
return false;
}

Powered by Google App Engine
This is Rietveld 408576698