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

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

Issue 11414083: Remove PrefObserver usage, batch 9. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to sort-of good revision (r169014). Created 8 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
« no previous file with comments | « chrome/browser/ui/app_list/apps_model_builder.h ('k') | chrome/browser/ui/browser_instant_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/app_list/apps_model_builder.cc
diff --git a/chrome/browser/ui/app_list/apps_model_builder.cc b/chrome/browser/ui/app_list/apps_model_builder.cc
index 6932c70a79886d345812b9eabd34a33a265a423b..8694caa81b06c2778fde6950bd53532e3da16ff9 100644
--- a/chrome/browser/ui/app_list/apps_model_builder.cc
+++ b/chrome/browser/ui/app_list/apps_model_builder.cc
@@ -57,7 +57,9 @@ AppsModelBuilder::AppsModelBuilder(Profile* profile,
content::Source<Profile>(profile_));
pref_change_registrar_.Init(extension_prefs->pref_service());
- pref_change_registrar_.Add(extensions::ExtensionPrefs::kExtensionsPref, this);
+ pref_change_registrar_.Add(extensions::ExtensionPrefs::kExtensionsPref,
+ base::Bind(&AppsModelBuilder::ResortApps,
+ base::Unretained(this)));
model_->AddObserver(this);
}
@@ -213,11 +215,6 @@ void AppsModelBuilder::Observe(int type,
}
}
-void AppsModelBuilder::OnPreferenceChanged(PrefServiceBase* service,
- const std::string& pref_name) {
- ResortApps();
-}
-
void AppsModelBuilder::ListItemsAdded(size_t start, size_t count) {
}
« no previous file with comments | « chrome/browser/ui/app_list/apps_model_builder.h ('k') | chrome/browser/ui/browser_instant_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698