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

Unified Diff: chrome/browser/chromeos/extensions/wallpaper_manager_util.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/chromeos/extensions/wallpaper_manager_util.cc
diff --git a/chrome/browser/chromeos/extensions/wallpaper_manager_util.cc b/chrome/browser/chromeos/extensions/wallpaper_manager_util.cc
index 510103ddd7b04ee44c70c427f38fc2adccd4fafa..ee0871df4a13f0dc0cde8135d8dff83a0e514efb 100644
--- a/chrome/browser/chromeos/extensions/wallpaper_manager_util.cc
+++ b/chrome/browser/chromeos/extensions/wallpaper_manager_util.cc
@@ -7,7 +7,7 @@
#include "base/command_line.h"
#include "base/logging.h"
#include "base/metrics/field_trial.h"
-#include "chrome/browser/chromeos/arc/arc_session_manager.h"
+#include "chrome/browser/chromeos/arc/arc_util.h"
#include "chrome/browser/chromeos/profiles/profile_helper.h"
#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/profiles/profile.h"
@@ -46,10 +46,8 @@ bool ShouldUseAndroidWallpapersApp(Profile* profile) {
if (!chromeos::ProfileHelper::IsPrimaryProfile(profile))
return false;
- // Check if the ARC is enabled.
- const arc::ArcSessionManager* const arc_session_manager =
- arc::ArcSessionManager::Get();
- if (!arc_session_manager || !arc_session_manager->IsArcPlayStoreEnabled())
+ // Check if the Google Play Store is enabled.
+ if (!arc::IsArcPlayStoreEnabledForProfile(profile))
return false;
// Check if Android Wallpapers App has been installed.

Powered by Google App Engine
This is Rietveld 408576698