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

Unified Diff: components/prefs/pref_service.cc

Issue 2664753002: Remove base::StringValue (Closed)
Patch Set: Rebase Created 3 years, 9 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 | « components/prefs/pref_registry_simple.cc ('k') | components/prefs/pref_service_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/prefs/pref_service.cc
diff --git a/components/prefs/pref_service.cc b/components/prefs/pref_service.cc
index b42529b19ce86d89632197063924048d1da751cb..89033a27ae9dfe416eb988f5d3a74afa272dbc75 100644
--- a/components/prefs/pref_service.cc
+++ b/components/prefs/pref_service.cc
@@ -401,7 +401,7 @@ void PrefService::SetDouble(const std::string& path, double value) {
}
void PrefService::SetString(const std::string& path, const std::string& value) {
- SetUserPrefValue(path, new base::StringValue(value));
+ SetUserPrefValue(path, new base::Value(value));
}
void PrefService::SetFilePath(const std::string& path,
@@ -410,7 +410,7 @@ void PrefService::SetFilePath(const std::string& path,
}
void PrefService::SetInt64(const std::string& path, int64_t value) {
- SetUserPrefValue(path, new base::StringValue(base::Int64ToString(value)));
+ SetUserPrefValue(path, new base::Value(base::Int64ToString(value)));
}
int64_t PrefService::GetInt64(const std::string& path) const {
@@ -431,7 +431,7 @@ int64_t PrefService::GetInt64(const std::string& path) const {
}
void PrefService::SetUint64(const std::string& path, uint64_t value) {
- SetUserPrefValue(path, new base::StringValue(base::Uint64ToString(value)));
+ SetUserPrefValue(path, new base::Value(base::Uint64ToString(value)));
}
uint64_t PrefService::GetUint64(const std::string& path) const {
« no previous file with comments | « components/prefs/pref_registry_simple.cc ('k') | components/prefs/pref_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698