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

Unified Diff: chrome/browser/ui/app_list/app_list_syncable_service.cc

Issue 156843004: Remove ExtensionService::extension_prefs() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: additional cleanup Created 6 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 f97c94fc63f805c91e61ed89765d0360c98bcc98..5a3de2145480ad43d8185ca2870a1bd405e799a7 100644
--- a/chrome/browser/ui/app_list/app_list_syncable_service.cc
+++ b/chrome/browser/ui/app_list/app_list_syncable_service.cc
@@ -94,7 +94,9 @@ syncer::SyncData GetSyncDataFromSyncItem(
}
bool AppIsDefault(ExtensionService* service, const std::string& id) {
- return service && service->extension_prefs()->WasInstalledByDefault(id);
+ return service &&
+ extensions::ExtensionPrefs::Get(service->profile())->
+ WasInstalledByDefault(id);
}
void UninstallExtension(ExtensionService* service, const std::string& id) {

Powered by Google App Engine
This is Rietveld 408576698