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

Unified Diff: components/prefs/pref_service.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_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 d0274b17c8cd32cb16f3e7448047adb6e1f82b0a..b42529b19ce86d89632197063924048d1da751cb 100644
--- a/components/prefs/pref_service.cc
+++ b/components/prefs/pref_service.cc
@@ -389,15 +389,15 @@ void PrefService::Set(const std::string& path, const base::Value& value) {
}
void PrefService::SetBoolean(const std::string& path, bool value) {
- SetUserPrefValue(path, new base::FundamentalValue(value));
+ SetUserPrefValue(path, new base::Value(value));
}
void PrefService::SetInteger(const std::string& path, int value) {
- SetUserPrefValue(path, new base::FundamentalValue(value));
+ SetUserPrefValue(path, new base::Value(value));
}
void PrefService::SetDouble(const std::string& path, double value) {
- SetUserPrefValue(path, new base::FundamentalValue(value));
+ SetUserPrefValue(path, new base::Value(value));
}
void PrefService::SetString(const std::string& path, const std::string& value) {
« 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