| Index: chrome/browser/prefs/pref_service.cc
|
| diff --git a/chrome/browser/prefs/pref_service.cc b/chrome/browser/prefs/pref_service.cc
|
| index 31ad5da8b0a15e8d3a28b08647c789d6bb10490c..825eee3c3188038006bc0dcacaa9d9307d471891 100644
|
| --- a/chrome/browser/prefs/pref_service.cc
|
| +++ b/chrome/browser/prefs/pref_service.cc
|
| @@ -27,6 +27,7 @@
|
| #include "chrome/browser/prefs/pref_model_associator.h"
|
| #include "chrome/browser/prefs/pref_notifier_impl.h"
|
| #include "chrome/browser/prefs/pref_value_store.h"
|
| +#include "chrome/browser/profiles/profile.h"
|
| #include "chrome/browser/ui/prefs/prefs_tab_helper.h"
|
| #include "chrome/browser/ui/profile_error_dialog.h"
|
| #include "chrome/common/json_pref_store.h"
|
| @@ -113,6 +114,10 @@ class ReadErrorHandler : public PersistentPrefStore::ReadErrorDelegate {
|
|
|
| } // namespace
|
|
|
| +PrefServiceBase* PrefServiceBase::ForProfile(Profile* profile) {
|
| + return profile->GetPrefs();
|
| +}
|
| +
|
| // static
|
| PrefService* PrefService::CreatePrefService(
|
| const FilePath& pref_filename,
|
| @@ -976,6 +981,10 @@ PrefService::Preference::Preference(const PrefService* service,
|
| DCHECK(service);
|
| }
|
|
|
| +const std::string PrefService::Preference::name() const {
|
| + return name_;
|
| +}
|
| +
|
| base::Value::Type PrefService::Preference::GetType() const {
|
| return type_;
|
| }
|
|
|