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

Unified Diff: components/prefs/pref_registry_simple.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_change_registrar_unittest.cc ('k') | components/prefs/pref_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/prefs/pref_registry_simple.cc
diff --git a/components/prefs/pref_registry_simple.cc b/components/prefs/pref_registry_simple.cc
index 4874261babc32076042476fd0416f3889355a5ac..ef15ce01d2450c074e6846569a10539fa7a56d80 100644
--- a/components/prefs/pref_registry_simple.cc
+++ b/components/prefs/pref_registry_simple.cc
@@ -16,19 +16,19 @@ PrefRegistrySimple::~PrefRegistrySimple() {
void PrefRegistrySimple::RegisterBooleanPref(const std::string& path,
bool default_value) {
- RegisterPrefAndNotify(path, new base::FundamentalValue(default_value),
+ RegisterPrefAndNotify(path, new base::Value(default_value),
NO_REGISTRATION_FLAGS);
}
void PrefRegistrySimple::RegisterIntegerPref(const std::string& path,
int default_value) {
- RegisterPrefAndNotify(path, new base::FundamentalValue(default_value),
+ RegisterPrefAndNotify(path, new base::Value(default_value),
NO_REGISTRATION_FLAGS);
}
void PrefRegistrySimple::RegisterDoublePref(const std::string& path,
double default_value) {
- RegisterPrefAndNotify(path, new base::FundamentalValue(default_value),
+ RegisterPrefAndNotify(path, new base::Value(default_value),
NO_REGISTRATION_FLAGS);
}
@@ -82,19 +82,19 @@ void PrefRegistrySimple::RegisterUint64Pref(const std::string& path,
void PrefRegistrySimple::RegisterBooleanPref(const std::string& path,
bool default_value,
uint32_t flags) {
- RegisterPrefAndNotify(path, new base::FundamentalValue(default_value), flags);
+ RegisterPrefAndNotify(path, new base::Value(default_value), flags);
}
void PrefRegistrySimple::RegisterIntegerPref(const std::string& path,
int default_value,
uint32_t flags) {
- RegisterPrefAndNotify(path, new base::FundamentalValue(default_value), flags);
+ RegisterPrefAndNotify(path, new base::Value(default_value), flags);
}
void PrefRegistrySimple::RegisterDoublePref(const std::string& path,
double default_value,
uint32_t flags) {
- RegisterPrefAndNotify(path, new base::FundamentalValue(default_value), flags);
+ RegisterPrefAndNotify(path, new base::Value(default_value), flags);
}
void PrefRegistrySimple::RegisterStringPref(const std::string& path,
« no previous file with comments | « components/prefs/pref_change_registrar_unittest.cc ('k') | components/prefs/pref_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698