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

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

Issue 11741003: Remove PrefServiceSimple, replacing it with PrefService and PrefRegistrySimple. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix double registration in Chrome Frame test. Created 7 years, 10 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
« no previous file with comments | « base/prefs/default_pref_store.cc ('k') | base/prefs/public/pref_member_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_unittest.cc
diff --git a/base/prefs/public/pref_change_registrar_unittest.cc b/base/prefs/public/pref_change_registrar_unittest.cc
index 185c9ded71117d537088316dcd6e21a240399720..df107e73ea25ee7ef1b0badf7ffb88a622e1b4d4 100644
--- a/base/prefs/public/pref_change_registrar_unittest.cc
+++ b/base/prefs/public/pref_change_registrar_unittest.cc
@@ -6,6 +6,7 @@
#include "base/bind_helpers.h"
#include "base/prefs/pref_observer.h"
#include "base/prefs/public/pref_change_registrar.h"
+#include "chrome/browser/prefs/pref_registry_simple.h"
#include "chrome/test/base/testing_pref_service.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -128,9 +129,10 @@ class ObserveSetOfPreferencesTest : public testing::Test {
public:
virtual void SetUp() {
pref_service_.reset(new TestingPrefServiceSimple);
- pref_service_->RegisterStringPref(kHomePage, "http://google.com");
- pref_service_->RegisterBooleanPref(kHomePageIsNewTabPage, false);
- pref_service_->RegisterStringPref(kApplicationLocale, "");
+ PrefRegistrySimple* registry = pref_service_->registry();
+ registry->RegisterStringPref(kHomePage, "http://google.com");
+ registry->RegisterBooleanPref(kHomePageIsNewTabPage, false);
+ registry->RegisterStringPref(kApplicationLocale, "");
}
PrefChangeRegistrar* CreatePrefChangeRegistrar() {
« no previous file with comments | « base/prefs/default_pref_store.cc ('k') | base/prefs/public/pref_member_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698