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

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

Issue 11741003: Remove PrefServiceSimple, replacing it with PrefService and PrefRegistrySimple. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update production interfaces based on review comments. Created 7 years, 11 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/prefs/pref_notifier_impl_unittest.cc
diff --git a/chrome/browser/prefs/pref_notifier_impl_unittest.cc b/chrome/browser/prefs/pref_notifier_impl_unittest.cc
index 3d3057ca67c9810e7b2dd45ec8d0d44f5d76e837..b655aab1f803a19d0e5a42dabcb575582ea824a3 100644
--- a/chrome/browser/prefs/pref_notifier_impl_unittest.cc
+++ b/chrome/browser/prefs/pref_notifier_impl_unittest.cc
@@ -7,6 +7,7 @@
#include "base/prefs/pref_observer.h"
#include "chrome/browser/prefs/mock_pref_change_callback.h"
#include "chrome/browser/prefs/pref_notifier_impl.h"
+#include "chrome/browser/prefs/pref_registry_simple.h"
#include "chrome/browser/prefs/pref_service.h"
#include "chrome/browser/prefs/pref_value_store.h"
#include "chrome/common/chrome_notification_types.h"
@@ -93,10 +94,10 @@ class PrefObserverMock : public PrefObserver {
class PrefNotifierTest : public testing::Test {
protected:
virtual void SetUp() {
- pref_service_.RegisterBooleanPref(kChangedPref,
- true);
- pref_service_.RegisterBooleanPref(kUnchangedPref,
- true);
+ pref_service_.registry()->RegisterBooleanPref(kChangedPref,
+ true);
Mattias Nissler (ping if slow) 2013/01/29 18:10:45 nit: no need for line break (also below).
Jói 2013/01/30 14:23:33 Done.
+ pref_service_.registry()->RegisterBooleanPref(kUnchangedPref,
+ true);
}
TestingPrefServiceSimple pref_service_;

Powered by Google App Engine
This is Rietveld 408576698