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

Unified Diff: chrome/browser/prefs/pref_service.cc

Issue 10919066: Use BrowserContext as key in API. Switch Autofill to use BC in place of Profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to parent Created 8 years, 3 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: chrome/browser/prefs/pref_service.cc
diff --git a/chrome/browser/prefs/pref_service.cc b/chrome/browser/prefs/pref_service.cc
index 825eee3c3188038006bc0dcacaa9d9307d471891..271cb36b6345b301369627e6f3f5748809f80142 100644
--- a/chrome/browser/prefs/pref_service.cc
+++ b/chrome/browser/prefs/pref_service.cc
@@ -37,6 +37,7 @@
#include "grit/generated_resources.h"
#include "ui/base/l10n/l10n_util.h"
+using content::BrowserContext;
using content::BrowserThread;
namespace {
@@ -114,8 +115,8 @@ class ReadErrorHandler : public PersistentPrefStore::ReadErrorDelegate {
} // namespace
-PrefServiceBase* PrefServiceBase::ForProfile(Profile* profile) {
- return profile->GetPrefs();
+PrefServiceBase* PrefServiceBase::ForContext(BrowserContext* context) {
+ return static_cast<Profile*>(context)->GetPrefs();
}
// static
« no previous file with comments | « chrome/browser/autofill/personal_data_manager.cc ('k') | chrome/browser/ui/autofill/tab_autofill_manager_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698