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

Unified Diff: components/user_prefs/user_prefs.cc

Issue 14141006: [components] Switch {RefCounted}ProfileKeyedService to use BrowserContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: trybots 2 Created 7 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/autofill/browser/autofill_manager_unittest.cc ('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 96866d187a7d1193c738a6f0e23dcb7af5dd41ef..73b8ece500c9f5529eafb28a6fbf318debdc413e 100644
--- a/components/user_prefs/user_prefs.cc
+++ b/components/user_prefs/user_prefs.cc
@@ -25,6 +25,7 @@ void* UserDataKey() {
// static
PrefService* UserPrefs::Get(content::BrowserContext* context) {
DCHECK(context);
+ DCHECK(context->GetUserData(UserDataKey()));
return static_cast<UserPrefs*>(
context->GetUserData(UserDataKey()))->prefs_;
}
« no previous file with comments | « components/autofill/browser/autofill_manager_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698