| Index: components/keyed_service/content/refcounted_browser_context_keyed_service_factory.cc
|
| diff --git a/components/keyed_service/content/refcounted_browser_context_keyed_service_factory.cc b/components/keyed_service/content/refcounted_browser_context_keyed_service_factory.cc
|
| index 4d22f56711265f81f73338c0734d6ee7df1e3f9c..4e68fbf73c6293cfab34349b10ae1760d5c0e039 100644
|
| --- a/components/keyed_service/content/refcounted_browser_context_keyed_service_factory.cc
|
| +++ b/components/keyed_service/content/refcounted_browser_context_keyed_service_factory.cc
|
| @@ -5,11 +5,8 @@
|
| #include "components/keyed_service/content/refcounted_browser_context_keyed_service_factory.h"
|
|
|
| #include "base/logging.h"
|
| -#include "base/prefs/pref_service.h"
|
| #include "components/keyed_service/content/browser_context_dependency_manager.h"
|
| #include "components/keyed_service/core/refcounted_keyed_service.h"
|
| -#include "components/pref_registry/pref_registry_syncable.h"
|
| -#include "components/user_prefs/user_prefs.h"
|
| #include "content/public/browser/browser_context.h"
|
|
|
| void RefcountedBrowserContextKeyedServiceFactory::SetTestingFactory(
|
| @@ -102,14 +99,16 @@ bool RefcountedBrowserContextKeyedServiceFactory::IsOffTheRecord(
|
| return static_cast<content::BrowserContext*>(context)->IsOffTheRecord();
|
| }
|
|
|
| -user_prefs::PrefRegistrySyncable*
|
| -RefcountedBrowserContextKeyedServiceFactory::GetAssociatedPrefRegistry(
|
| +base::SupportsUserData*
|
| +RefcountedBrowserContextKeyedServiceFactory::GetUnderlyingContextInternal(
|
| base::SupportsUserData* context) const {
|
| - PrefService* prefs = user_prefs::UserPrefs::Get(context);
|
| - user_prefs::PrefRegistrySyncable* registry =
|
| - static_cast<user_prefs::PrefRegistrySyncable*>(
|
| - prefs->DeprecatedGetPrefRegistry());
|
| - return registry;
|
| + return context;
|
| +}
|
| +
|
| +base::SupportsUserData*
|
| +RefcountedBrowserContextKeyedServiceFactory::GetOriginalContextInternal(
|
| + base::SupportsUserData* context) const {
|
| + return context;
|
| }
|
|
|
| base::SupportsUserData*
|
|
|