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

Unified Diff: base/prefs/testing_pref_store.cc

Issue 11519026: base: Do not use Value::Create* functions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ? win is crazy Created 8 years 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 d40fb8ad747cc3818f09d5b78126f2346d49cc00..85f35bb17d1e9efff12dcb49d91033a039793a5c 100644
--- a/base/prefs/testing_pref_store.cc
+++ b/base/prefs/testing_pref_store.cc
@@ -92,15 +92,15 @@ void TestingPrefStore::ReportValueChanged(const std::string& key) {
void TestingPrefStore::SetString(const std::string& key,
const std::string& value) {
- SetValue(key, Value::CreateStringValue(value));
+ SetValue(key, new base::StringValue(value));
}
void TestingPrefStore::SetInteger(const std::string& key, int value) {
- SetValue(key, Value::CreateIntegerValue(value));
+ SetValue(key, new base::FundamentalValue(value));
}
void TestingPrefStore::SetBoolean(const std::string& key, bool value) {
- SetValue(key, Value::CreateBooleanValue(value));
+ SetValue(key, new base::FundamentalValue(value));
}
bool TestingPrefStore::GetString(const std::string& key,

Powered by Google App Engine
This is Rietveld 408576698