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

Unified Diff: chrome/browser/custom_handlers/protocol_handler_registry_unittest.cc

Issue 11573065: Not for check-in. Manually reviewable parts of https://codereview.chromium.org/11570009/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . 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
Index: chrome/browser/custom_handlers/protocol_handler_registry_unittest.cc
diff --git a/chrome/browser/custom_handlers/protocol_handler_registry_unittest.cc b/chrome/browser/custom_handlers/protocol_handler_registry_unittest.cc
index 0c89013fe787819ac11d616d9e475dc8e8453c1b..4d3cc6600215aff75a3a00fbaba3585398216b77 100644
--- a/chrome/browser/custom_handlers/protocol_handler_registry_unittest.cc
+++ b/chrome/browser/custom_handlers/protocol_handler_registry_unittest.cc
@@ -279,7 +279,7 @@ class ProtocolHandlerRegistryTest : public testing::Test {
FakeDelegate* delegate() const { return delegate_; }
ProtocolHandlerRegistry* registry() { return registry_.get(); }
TestingProfile* profile() const { return profile_.get(); }
- PrefService* pref_service() const { return profile_->GetPrefs(); }
+ PrefServiceSyncable* pref_service() const { return profile_->GetPrefs(); }
const ProtocolHandler& test_protocol_handler() const {
return test_protocol_handler_;
}
@@ -318,11 +318,11 @@ class ProtocolHandlerRegistryTest : public testing::Test {
virtual void SetUp() {
profile_.reset(new TestingProfile());
- profile_->SetPrefService(new TestingPrefService());
+ profile_->SetPrefService(new TestingPrefServiceSyncable());
SetUpRegistry(true);
test_protocol_handler_ =
CreateProtocolHandler("test", GURL("http://test.com/%s"), "Test");
- ProtocolHandlerRegistry::RegisterPrefs(pref_service());
+ ProtocolHandlerRegistry::RegisterUserPrefs(pref_service());
}
virtual void TearDown() {
« no previous file with comments | « chrome/browser/custom_handlers/protocol_handler_registry.cc ('k') | chrome/browser/debugger/devtools_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698