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

Unified Diff: base/prefs/public/pref_change_registrar.cc

Issue 11316163: Remove the last usages of PrefObserver outside of Prefs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments. Created 8 years 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 | « base/prefs/public/pref_change_registrar.h ('k') | base/prefs/public/pref_change_registrar_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/prefs/public/pref_change_registrar.cc
diff --git a/base/prefs/public/pref_change_registrar.cc b/base/prefs/public/pref_change_registrar.cc
index 41b422d2ce5623c4e7a6c5f12fb0543951edc4be..681d91200d8f1b303c25332970a0ae579d3cd8ab 100644
--- a/base/prefs/public/pref_change_registrar.cc
+++ b/base/prefs/public/pref_change_registrar.cc
@@ -23,12 +23,6 @@ void PrefChangeRegistrar::Init(PrefServiceBase* service) {
service_ = service;
}
-void PrefChangeRegistrar::Add(const char* path, PrefObserver* obs) {
- DCHECK(obs);
- return Add(path, base::Bind(&PrefObserver::OnPreferenceChanged,
- base::Unretained(obs), service_));
-}
-
void PrefChangeRegistrar::Add(const char* path,
const base::Closure& obs) {
Add(path, base::Bind(&PrefChangeRegistrar::InvokeUnnamedCallback, obs));
« no previous file with comments | « base/prefs/public/pref_change_registrar.h ('k') | base/prefs/public/pref_change_registrar_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698