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

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

Issue 2702723002: Extract kArcEnabled preference from ArcSessionManager part 1. (Closed)
Patch Set: Address comments. Created 3 years, 10 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/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 a43b394646275147499701d3fbfc19b89e963f9b..724ac1dd2e115239c82a69febf6c2ff3e1f1058d 100644
--- a/chrome/browser/ui/ash/launcher/launcher_controller_helper.cc
+++ b/chrome/browser/ui/ash/launcher/launcher_controller_helper.cc
@@ -161,8 +161,8 @@ bool LauncherControllerHelper::IsValidIDForCurrentUser(
DCHECK(arc_session_manager);
if (!arc_session_manager->IsAllowed())
return false;
- if (!arc_session_manager->IsArcPlayStoreEnabled() &&
- arc_session_manager->IsArcManaged())
+ if (!arc::IsArcPlayStoreEnabledForProfile(profile()) &&
+ arc::IsArcPlayStoreEnabledPreferenceManagedForProfile(profile()))
return false;
}

Powered by Google App Engine
This is Rietveld 408576698