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

Unified Diff: components/prefs/pref_value_map.cc

Issue 2476493003: Remove FundamentalValue
Patch Set: Fix Created 4 years, 1 month 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_service_unittest.cc ('k') | components/prefs/pref_value_map_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/prefs/pref_value_map.cc
diff --git a/components/prefs/pref_value_map.cc b/components/prefs/pref_value_map.cc
index c146918e238eff6e027c7dc65cf201d45005ed92..dc44253c13ed7624c5dbd3e0d219e506c2b527e3 100644
--- a/components/prefs/pref_value_map.cc
+++ b/components/prefs/pref_value_map.cc
@@ -85,7 +85,7 @@ bool PrefValueMap::GetBoolean(const std::string& key,
}
void PrefValueMap::SetBoolean(const std::string& key, bool value) {
- SetValue(key, base::MakeUnique<base::FundamentalValue>(value));
+ SetValue(key, base::MakeUnique<base::Value>(value));
}
bool PrefValueMap::GetString(const std::string& key,
@@ -105,11 +105,11 @@ bool PrefValueMap::GetInteger(const std::string& key, int* value) const {
}
void PrefValueMap::SetInteger(const std::string& key, const int value) {
- SetValue(key, base::MakeUnique<base::FundamentalValue>(value));
+ SetValue(key, base::MakeUnique<base::Value>(value));
}
void PrefValueMap::SetDouble(const std::string& key, const double value) {
- SetValue(key, base::MakeUnique<base::FundamentalValue>(value));
+ SetValue(key, base::MakeUnique<base::Value>(value));
}
void PrefValueMap::GetDifferingKeys(
« no previous file with comments | « components/prefs/pref_service_unittest.cc ('k') | components/prefs/pref_value_map_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698