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

Unified Diff: components/prefs/pref_value_map.cc

Issue 2666093002: Remove base::FundamentalValue (Closed)
Patch Set: Rebase Created 3 years, 10 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_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 ecacf4c73d4b550f61c292d2047646b6776b0493..a035267040035bb1922ec87aee016e57ded6434d 100644
--- a/components/prefs/pref_value_map.cc
+++ b/components/prefs/pref_value_map.cc
@@ -92,7 +92,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,
@@ -112,11 +112,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