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

Unified Diff: components/keyed_service/content/refcounted_browser_context_keyed_service_factory.cc

Issue 1062083003: Implement BrowserStateKeyedServiceFactory::GetAssociatedPrefRegistry() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add missing include in card_unmask_prompt_controller_impl_unittest.cc Created 5 years, 8 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: 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 98ba79060c3e4e3f2693e20a1cd73685e3223ee9..4d22f56711265f81f73338c0734d6ee7df1e3f9c 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
@@ -105,8 +105,7 @@ bool RefcountedBrowserContextKeyedServiceFactory::IsOffTheRecord(
user_prefs::PrefRegistrySyncable*
RefcountedBrowserContextKeyedServiceFactory::GetAssociatedPrefRegistry(
base::SupportsUserData* context) const {
- PrefService* prefs = user_prefs::UserPrefs::Get(
- static_cast<content::BrowserContext*>(context));
+ PrefService* prefs = user_prefs::UserPrefs::Get(context);
user_prefs::PrefRegistrySyncable* registry =
static_cast<user_prefs::PrefRegistrySyncable*>(
prefs->DeprecatedGetPrefRegistry());

Powered by Google App Engine
This is Rietveld 408576698