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

Unified Diff: components/user_prefs/user_prefs.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
« no previous file with comments | « components/user_prefs/user_prefs.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/user_prefs/user_prefs.cc
diff --git a/components/user_prefs/user_prefs.cc b/components/user_prefs/user_prefs.cc
index 8ecdfe4bc93abb5d827d0cc07d187336f10fd587..3ddff9bfc10902b48ff24f189098c8f8d3b14990 100644
--- a/components/user_prefs/user_prefs.cc
+++ b/components/user_prefs/user_prefs.cc
@@ -7,7 +7,6 @@
#include "base/logging.h"
#include "base/memory/singleton.h"
#include "base/prefs/pref_service.h"
-#include "content/public/browser/browser_context.h"
namespace user_prefs {
@@ -23,7 +22,7 @@ void* UserDataKey() {
} // namespace
// static
-PrefService* UserPrefs::Get(content::BrowserContext* context) {
+PrefService* UserPrefs::Get(base::SupportsUserData* context) {
DCHECK(context);
DCHECK(context->GetUserData(UserDataKey()));
return static_cast<UserPrefs*>(
@@ -31,7 +30,7 @@ PrefService* UserPrefs::Get(content::BrowserContext* context) {
}
// static
-void UserPrefs::Set(content::BrowserContext* context, PrefService* prefs) {
+void UserPrefs::Set(base::SupportsUserData* context, PrefService* prefs) {
DCHECK(context);
DCHECK(prefs);
DCHECK(!context->GetUserData(UserDataKey()));
« no previous file with comments | « components/user_prefs/user_prefs.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698