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

Unified Diff: chrome/browser/prefs/pref_notifier_impl.cc

Issue 8568019: Introduce per-tab preferences service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed ProfileSyncServicePreferenceTest tests Created 9 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/prefs/pref_notifier_impl.cc
diff --git a/chrome/browser/prefs/pref_notifier_impl.cc b/chrome/browser/prefs/pref_notifier_impl.cc
index ec5352bcae54d5b63881271e6887991feafb589e..3c23879ee06677892856a6f8c514f5fb9e665444 100644
--- a/chrome/browser/prefs/pref_notifier_impl.cc
+++ b/chrome/browser/prefs/pref_notifier_impl.cc
@@ -10,6 +10,10 @@
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_service.h"
+PrefNotifierImpl::PrefNotifierImpl()
+ : pref_service_(NULL) {
+}
+
PrefNotifierImpl::PrefNotifierImpl(PrefService* service)
: pref_service_(service) {
}
@@ -104,3 +108,8 @@ void PrefNotifierImpl::FireObservers(const std::string& path) {
content::Details<const std::string>(&path));
}
}
+
+void PrefNotifierImpl::SetPrefService(PrefService* pref_service) {
+ DCHECK(pref_service_ == NULL);
+ pref_service_ = pref_service;
+}

Powered by Google App Engine
This is Rietveld 408576698