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

Unified Diff: base/prefs/testing_pref_store.cc

Issue 16797003: Make base use the proper Value namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: iwarnings fixed Created 7 years, 6 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
Index: base/prefs/testing_pref_store.cc
diff --git a/base/prefs/testing_pref_store.cc b/base/prefs/testing_pref_store.cc
index 85f35bb17d1e9efff12dcb49d91033a039793a5c..fcb48cee2e7509c5a61006cd8fe9b5541a982e61 100644
--- a/base/prefs/testing_pref_store.cc
+++ b/base/prefs/testing_pref_store.cc
@@ -13,12 +13,12 @@ TestingPrefStore::TestingPrefStore()
}
bool TestingPrefStore::GetValue(const std::string& key,
- const Value** value) const {
+ const base::Value** value) const {
return prefs_.GetValue(key, value);
}
bool TestingPrefStore::GetMutableValue(const std::string& key,
- Value** value) {
+ base::Value** value) {
return prefs_.GetValue(key, value);
}
@@ -38,12 +38,13 @@ bool TestingPrefStore::IsInitializationComplete() const {
return init_complete_;
}
-void TestingPrefStore::SetValue(const std::string& key, Value* value) {
+void TestingPrefStore::SetValue(const std::string& key, base::Value* value) {
if (prefs_.SetValue(key, value))
NotifyPrefValueChanged(key);
}
-void TestingPrefStore::SetValueSilently(const std::string& key, Value* value) {
+void TestingPrefStore::SetValueSilently(const std::string& key,
+ base::Value* value) {
prefs_.SetValue(key, value);
}
@@ -105,7 +106,7 @@ void TestingPrefStore::SetBoolean(const std::string& key, bool value) {
bool TestingPrefStore::GetString(const std::string& key,
std::string* value) const {
- const Value* stored_value;
+ const base::Value* stored_value;
if (!prefs_.GetValue(key, &stored_value) || !stored_value)
return false;
@@ -113,7 +114,7 @@ bool TestingPrefStore::GetString(const std::string& key,
}
bool TestingPrefStore::GetInteger(const std::string& key, int* value) const {
- const Value* stored_value;
+ const base::Value* stored_value;
if (!prefs_.GetValue(key, &stored_value) || !stored_value)
return false;
@@ -121,7 +122,7 @@ bool TestingPrefStore::GetInteger(const std::string& key, int* value) const {
}
bool TestingPrefStore::GetBoolean(const std::string& key, bool* value) const {
- const Value* stored_value;
+ const base::Value* stored_value;
if (!prefs_.GetValue(key, &stored_value) || !stored_value)
return false;

Powered by Google App Engine
This is Rietveld 408576698