| 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 72a39f3424864429d0d4c2418603dd5ae931130a..294887a308a3926d35178bc28cd068adfead82e6 100644
|
| --- a/chrome/browser/custom_handlers/protocol_handler_registry_unittest.cc
|
| +++ b/chrome/browser/custom_handlers/protocol_handler_registry_unittest.cc
|
| @@ -10,6 +10,8 @@
|
| #include "base/message_loop.h"
|
| #include "base/synchronization/waitable_event.h"
|
| #include "base/utf_string_conversions.h"
|
| +#include "chrome/browser/prefs/pref_registry_syncable.h"
|
| +#include "chrome/browser/prefs/pref_service_syncable.h"
|
| #include "chrome/common/chrome_notification_types.h"
|
| #include "chrome/common/custom_handlers/protocol_handler.h"
|
| #include "chrome/test/base/testing_browser_process.h"
|
| @@ -328,9 +330,6 @@ class ProtocolHandlerRegistryTest : public testing::Test {
|
| FakeDelegate* delegate() const { return delegate_; }
|
| ProtocolHandlerRegistry* registry() { return registry_.get(); }
|
| TestingProfile* profile() const { return profile_.get(); }
|
| - // TODO(joi): Check if this can be removed, as well as the call to
|
| - // SetPrefService in SetUp.
|
| - PrefServiceSyncable* pref_service() const { return profile_->GetPrefs(); }
|
| const ProtocolHandler& test_protocol_handler() const {
|
| return test_protocol_handler_;
|
| }
|
| @@ -369,14 +368,10 @@ class ProtocolHandlerRegistryTest : public testing::Test {
|
|
|
| virtual void SetUp() {
|
| profile_.reset(new TestingProfile());
|
| - profile_->SetPrefService(new TestingPrefServiceSyncable());
|
| + CHECK(profile_->GetPrefs());
|
| SetUpRegistry(true);
|
| test_protocol_handler_ =
|
| CreateProtocolHandler("test", GURL("http://test.com/%s"), "Test");
|
| -
|
| - // TODO(joi): If pref_service() and the SetPrefService above go,
|
| - // then this could go.
|
| - ProtocolHandlerRegistry::RegisterUserPrefs(pref_service());
|
| }
|
|
|
| virtual void TearDown() {
|
|
|