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

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

Issue 11345008: Remove content::NotificationObserver dependency from most Prefs code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head for commit 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
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 9eb65a270ee27fd60d3964ec08b3d9b624542dd7..8dba307902e4e33659fc86e2911fad3760bba9bb 100644
--- a/chrome/browser/ui/app_list/apps_model_builder.cc
+++ b/chrome/browser/ui/app_list/apps_model_builder.cc
@@ -208,15 +208,16 @@ void AppsModelBuilder::Observe(int type,
HighlightApp();
break;
}
- case chrome::NOTIFICATION_PREF_CHANGED: {
- ResortApps();
- break;
- }
default:
NOTREACHED();
}
}
+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/ash/launcher/chrome_launcher_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698