summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authorjoi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-06 00:42:44 +0000
committerjoi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-06 00:42:44 +0000
commit75fee3776f2e159d8e52bb13bb4545ac46021512 (patch)
tree7740edac61c7925bd342065bc31d6127e42a7b89 /base
parentd959538b0a69164776b6410bc2c87f46a2c80e89 (diff)
downloadchromium_src-75fee3776f2e159d8e52bb13bb4545ac46021512.zip
chromium_src-75fee3776f2e159d8e52bb13bb4545ac46021512.tar.gz
chromium_src-75fee3776f2e159d8e52bb13bb4545ac46021512.tar.bz2
Introduce //components/user_prefs.
The user_prefs component provides: a) The UserPrefs class, used to map PrefService objects to BrowserContext. This addresses a TODO to get rid of PrefServiceFromBrowserContext from base/prefs/pref_service.h, where clearly a mention of a content class did not belong. b) A place for PrefRegistrySyncable to live, where it can be used by components that need to register prefs. We also use (b) in this change to eliminate Autofill's dependency on chrome/browser/prefs. Work is ongoing to move Autofill to //components/autofill. TBR=ben@chromium.org BUG=155525,140037 Review URL: https://chromiumcodereview.appspot.com/12340111 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186301 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r--base/prefs/pref_service.cc2
-rw-r--r--base/prefs/pref_service.h10
2 files changed, 0 insertions, 12 deletions
diff --git a/base/prefs/pref_service.cc b/base/prefs/pref_service.cc
index b1f4f3f..3b0e2cb 100644
--- a/base/prefs/pref_service.cc
+++ b/base/prefs/pref_service.cc
@@ -21,8 +21,6 @@
#include "base/value_conversions.h"
#include "build/build_config.h"
-using content::BrowserContext;
-
namespace {
class ReadErrorHandler : public PersistentPrefStore::ReadErrorDelegate {
diff --git a/base/prefs/pref_service.h b/base/prefs/pref_service.h
index 9ba78be..d88dc91 100644
--- a/base/prefs/pref_service.h
+++ b/base/prefs/pref_service.h
@@ -36,10 +36,6 @@ namespace base {
class FilePath;
}
-namespace content {
-class BrowserContext;
-}
-
namespace subtle {
class PrefMemberBase;
class ScopedUserPrefUpdateBase;
@@ -355,10 +351,4 @@ class BASE_PREFS_EXPORT PrefService : public base::NonThreadSafe {
DISALLOW_COPY_AND_ASSIGN(PrefService);
};
-// Retrieves a PrefService for the given context.
-//
-// TODO(joi): This doesn't really belong here, since it references a
-// content type; probably best to get rid of it completely.
-PrefService* PrefServiceFromBrowserContext(content::BrowserContext* context);
-
#endif // BASE_PREFS_PREF_SERVICE_H_