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

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

Issue 10828345: Extract PrefServiceBase into chrome/browser/api. Use in api and autofill. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head Created 8 years, 4 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 | « chrome/browser/prefs/pref_service.h ('k') | chrome/browser/printing/print_view_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
}
« no previous file with comments | « chrome/browser/prefs/pref_service.h ('k') | chrome/browser/printing/print_view_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698