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

Unified Diff: chrome/browser/policy/url_blacklist_manager_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
Index: chrome/browser/policy/url_blacklist_manager_unittest.cc
diff --git a/chrome/browser/policy/url_blacklist_manager_unittest.cc b/chrome/browser/policy/url_blacklist_manager_unittest.cc
index d800824877280888e5b30020d1fa111e5bd2e8f5..81000ec75a793aae605715ec156b3c772da54f04 100644
--- a/chrome/browser/policy/url_blacklist_manager_unittest.cc
+++ b/chrome/browser/policy/url_blacklist_manager_unittest.cc
@@ -8,6 +8,7 @@
#include "base/basictypes.h"
#include "base/message_loop.h"
+#include "chrome/browser/prefs/pref_registry_simple.h"
#include "chrome/common/pref_names.h"
#include "chrome/test/base/testing_pref_service.h"
#include "content/public/test/test_browser_thread.h"
@@ -72,8 +73,8 @@ class URLBlacklistManagerTest : public testing::Test {
}
virtual void SetUp() OVERRIDE {
- pref_service_.RegisterListPref(prefs::kUrlBlacklist);
- pref_service_.RegisterListPref(prefs::kUrlWhitelist);
+ pref_service_.registry()->RegisterListPref(prefs::kUrlBlacklist);
+ pref_service_.registry()->RegisterListPref(prefs::kUrlWhitelist);
blacklist_manager_.reset(
new TestingURLBlacklistManager(&pref_service_));
loop_.RunUntilIdle();

Powered by Google App Engine
This is Rietveld 408576698