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

Unified Diff: components/prefs/pref_registry_simple.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_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 ef15ce01d2450c074e6846569a10539fa7a56d80..efd8cf2f9778e2e7e783cd478e4814f397598e24 100644
--- a/components/prefs/pref_registry_simple.cc
+++ b/components/prefs/pref_registry_simple.cc
@@ -34,14 +34,14 @@ void PrefRegistrySimple::RegisterDoublePref(const std::string& path,
void PrefRegistrySimple::RegisterStringPref(const std::string& path,
const std::string& default_value) {
- RegisterPrefAndNotify(path, new base::StringValue(default_value),
+ RegisterPrefAndNotify(path, new base::Value(default_value),
NO_REGISTRATION_FLAGS);
}
void PrefRegistrySimple::RegisterFilePathPref(
const std::string& path,
const base::FilePath& default_value) {
- RegisterPrefAndNotify(path, new base::StringValue(default_value.value()),
+ RegisterPrefAndNotify(path, new base::Value(default_value.value()),
NO_REGISTRATION_FLAGS);
}
@@ -67,16 +67,16 @@ void PrefRegistrySimple::RegisterDictionaryPref(
void PrefRegistrySimple::RegisterInt64Pref(const std::string& path,
int64_t default_value) {
- RegisterPrefAndNotify(
- path, new base::StringValue(base::Int64ToString(default_value)),
- NO_REGISTRATION_FLAGS);
+ RegisterPrefAndNotify(path,
+ new base::Value(base::Int64ToString(default_value)),
+ NO_REGISTRATION_FLAGS);
}
void PrefRegistrySimple::RegisterUint64Pref(const std::string& path,
uint64_t default_value) {
- RegisterPrefAndNotify(
- path, new base::StringValue(base::Uint64ToString(default_value)),
- NO_REGISTRATION_FLAGS);
+ RegisterPrefAndNotify(path,
+ new base::Value(base::Uint64ToString(default_value)),
+ NO_REGISTRATION_FLAGS);
}
void PrefRegistrySimple::RegisterBooleanPref(const std::string& path,
@@ -100,15 +100,14 @@ void PrefRegistrySimple::RegisterDoublePref(const std::string& path,
void PrefRegistrySimple::RegisterStringPref(const std::string& path,
const std::string& default_value,
uint32_t flags) {
- RegisterPrefAndNotify(path, new base::StringValue(default_value), flags);
+ RegisterPrefAndNotify(path, new base::Value(default_value), flags);
}
void PrefRegistrySimple::RegisterFilePathPref(
const std::string& path,
const base::FilePath& default_value,
uint32_t flags) {
- RegisterPrefAndNotify(path, new base::StringValue(default_value.value()),
- flags);
+ RegisterPrefAndNotify(path, new base::Value(default_value.value()), flags);
}
void PrefRegistrySimple::RegisterListPref(const std::string& path,
@@ -138,14 +137,14 @@ void PrefRegistrySimple::RegisterInt64Pref(const std::string& path,
int64_t default_value,
uint32_t flags) {
RegisterPrefAndNotify(
- path, new base::StringValue(base::Int64ToString(default_value)), flags);
+ path, new base::Value(base::Int64ToString(default_value)), flags);
}
void PrefRegistrySimple::RegisterUint64Pref(const std::string& path,
uint64_t default_value,
uint32_t flags) {
RegisterPrefAndNotify(
- path, new base::StringValue(base::Uint64ToString(default_value)), flags);
+ path, new base::Value(base::Uint64ToString(default_value)), flags);
}
void PrefRegistrySimple::OnPrefRegistered(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