summaryrefslogtreecommitdiffstats
path: root/chrome/common/pref_store.h
diff options
context:
space:
mode:
authorbattre@chromium.org <battre@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-25 16:38:31 +0000
committerbattre@chromium.org <battre@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-25 16:38:31 +0000
commit68bf41ae4642cc0b1ad6f9d5c4050acaf3d7d1d5 (patch)
tree42a4b753dd5db63399fc7a55f021c0bf6adfb1ba /chrome/common/pref_store.h
parente6eddfdb8f1a9688145e5efba334d484c738a1c6 (diff)
downloadchromium_src-68bf41ae4642cc0b1ad6f9d5c4050acaf3d7d1d5.zip
chromium_src-68bf41ae4642cc0b1ad6f9d5c4050acaf3d7d1d5.tar.gz
chromium_src-68bf41ae4642cc0b1ad6f9d5c4050acaf3d7d1d5.tar.bz2
Let PrefStore::GetValue return a const Value* instead of Value* and add PersistentPrefStore::GetMutableValue
BUG=none TEST=none Review URL: http://codereview.chromium.org/6713099 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79413 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/pref_store.h')
-rw-r--r--chrome/common/pref_store.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/common/pref_store.h b/chrome/common/pref_store.h
index 819a764..a9185fe 100644
--- a/chrome/common/pref_store.h
+++ b/chrome/common/pref_store.h
@@ -55,7 +55,8 @@ class PrefStore : public base::RefCounted<PrefStore> {
// Get the value for a given preference |key| and stores it in |result|.
// |result| is only modified if the return value is READ_OK. Ownership of the
// |result| value remains with the PrefStore.
- virtual ReadResult GetValue(const std::string& key, Value** result) const = 0;
+ virtual ReadResult GetValue(const std::string& key,
+ const Value** result) const = 0;
protected:
friend class base::RefCounted<PrefStore>;