Chromium Code Reviews| 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(); |
|
erikwright (departed)
2012/09/04 19:42:15
Do you think this static cast will be permanent?
Jói
2012/09/04 20:10:25
As permanent as the PrefServiceBase::ForContext fu
|
| } |
| // static |