| Index: components/keyed_service/content/browser_context_keyed_base_factory.cc
|
| diff --git a/components/keyed_service/content/browser_context_keyed_base_factory.cc b/components/keyed_service/content/browser_context_keyed_base_factory.cc
|
| index d09ea4af47c49e10cc91b1026e3382dd276905bf..fe461ffb8f076eedac08a3d9db6c94048cd6b16a 100644
|
| --- a/components/keyed_service/content/browser_context_keyed_base_factory.cc
|
| +++ b/components/keyed_service/content/browser_context_keyed_base_factory.cc
|
| @@ -4,10 +4,7 @@
|
|
|
| #include "components/keyed_service/content/browser_context_keyed_base_factory.h"
|
|
|
| -#include "base/prefs/pref_service.h"
|
| #include "components/keyed_service/content/browser_context_dependency_manager.h"
|
| -#include "components/pref_registry/pref_registry_syncable.h"
|
| -#include "components/user_prefs/user_prefs.h"
|
| #include "content/public/browser/browser_context.h"
|
|
|
| BrowserContextKeyedBaseFactory::BrowserContextKeyedBaseFactory(
|
| @@ -53,16 +50,6 @@ void BrowserContextKeyedBaseFactory::BrowserContextDestroyed(
|
| KeyedServiceBaseFactory::ContextDestroyed(context);
|
| }
|
|
|
| -user_prefs::PrefRegistrySyncable*
|
| -BrowserContextKeyedBaseFactory::GetAssociatedPrefRegistry(
|
| - base::SupportsUserData* context) const {
|
| - PrefService* prefs = user_prefs::UserPrefs::Get(context);
|
| - user_prefs::PrefRegistrySyncable* registry =
|
| - static_cast<user_prefs::PrefRegistrySyncable*>(
|
| - prefs->DeprecatedGetPrefRegistry());
|
| - return registry;
|
| -}
|
| -
|
| base::SupportsUserData* BrowserContextKeyedBaseFactory::GetContextToUse(
|
| base::SupportsUserData* context) const {
|
| return GetBrowserContextToUse(static_cast<content::BrowserContext*>(context));
|
|
|