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

Unified Diff: chrome/browser/ui/app_list/app_list_syncable_service.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/app_list/app_list_syncable_service.cc
diff --git a/chrome/browser/ui/app_list/app_list_syncable_service.cc b/chrome/browser/ui/app_list/app_list_syncable_service.cc
index 03c9ddcdc2c25be5ac51b2d704cb9c8ef7a1a6ac..fb9385211b40b43a7a7110ae33aa3b1db942fe51 100644
--- a/chrome/browser/ui/app_list/app_list_syncable_service.cc
+++ b/chrome/browser/ui/app_list/app_list_syncable_service.cc
@@ -40,7 +40,6 @@
#include "ui/base/l10n/l10n_util.h"
#if defined(OS_CHROMEOS)
-#include "chrome/browser/chromeos/arc/arc_session_manager.h"
#include "chrome/browser/chromeos/arc/arc_util.h"
#include "chrome/browser/chromeos/file_manager/app_id.h"
#include "chrome/browser/chromeos/genius_app/app_id.h"
@@ -262,10 +261,7 @@ class AppListSyncableService::ModelObserver : public AppListModelObserver {
#if defined(OS_CHROMEOS)
if (item->GetItemType() == ArcAppItem::kItemType) {
// Don't sync remove changes coming as result of disabling ARC.
- const arc::ArcSessionManager* arc_session_manager =
- arc::ArcSessionManager::Get();
- DCHECK(arc_session_manager);
- if (!arc_session_manager->IsArcPlayStoreEnabled())
+ if (!arc::IsArcPlayStoreEnabledForProfile(owner_->profile()))
return;
}
#endif

Powered by Google App Engine
This is Rietveld 408576698