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

Unified Diff: base/prefs/pref_registry_simple.cc

Issue 1544033003: Switch to standard integer types in base/prefs/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 | « base/prefs/pref_registry_simple.h ('k') | base/prefs/pref_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/prefs/pref_registry_simple.cc
diff --git a/base/prefs/pref_registry_simple.cc b/base/prefs/pref_registry_simple.cc
index 93c268686d50dd93c23299c5c47f9a0f7ca0d396..b5c73e22cd58c6ba95e90fd3684b367a956b4e16 100644
--- a/base/prefs/pref_registry_simple.cc
+++ b/base/prefs/pref_registry_simple.cc
@@ -66,14 +66,14 @@ void PrefRegistrySimple::RegisterDictionaryPref(
}
void PrefRegistrySimple::RegisterInt64Pref(const std::string& path,
- int64 default_value) {
+ int64_t default_value) {
RegisterPrefAndNotify(
path, new base::StringValue(base::Int64ToString(default_value)),
NO_REGISTRATION_FLAGS);
}
void PrefRegistrySimple::RegisterUint64Pref(const std::string& path,
- uint64 default_value) {
+ uint64_t default_value) {
RegisterPrefAndNotify(
path, new base::StringValue(base::Uint64ToString(default_value)),
NO_REGISTRATION_FLAGS);
@@ -81,81 +81,80 @@ void PrefRegistrySimple::RegisterUint64Pref(const std::string& path,
void PrefRegistrySimple::RegisterBooleanPref(const std::string& path,
bool default_value,
- uint32 flags) {
+ uint32_t flags) {
RegisterPrefAndNotify(path, new base::FundamentalValue(default_value), flags);
}
void PrefRegistrySimple::RegisterIntegerPref(const std::string& path,
int default_value,
- uint32 flags) {
+ uint32_t flags) {
RegisterPrefAndNotify(path, new base::FundamentalValue(default_value), flags);
}
void PrefRegistrySimple::RegisterDoublePref(const std::string& path,
double default_value,
- uint32 flags) {
+ uint32_t flags) {
RegisterPrefAndNotify(path, new base::FundamentalValue(default_value), flags);
}
void PrefRegistrySimple::RegisterStringPref(const std::string& path,
const std::string& default_value,
- uint32 flags) {
+ uint32_t flags) {
RegisterPrefAndNotify(path, new base::StringValue(default_value), flags);
}
void PrefRegistrySimple::RegisterFilePathPref(
const std::string& path,
const base::FilePath& default_value,
- uint32 flags) {
+ uint32_t flags) {
RegisterPrefAndNotify(path, new base::StringValue(default_value.value()),
flags);
}
void PrefRegistrySimple::RegisterListPref(const std::string& path,
- uint32 flags) {
+ uint32_t flags) {
RegisterPrefAndNotify(path, new base::ListValue(), flags);
}
void PrefRegistrySimple::RegisterListPref(const std::string& path,
base::ListValue* default_value,
- uint32 flags) {
+ uint32_t flags) {
RegisterPrefAndNotify(path, default_value, flags);
}
void PrefRegistrySimple::RegisterDictionaryPref(const std::string& path,
- uint32 flags) {
+ uint32_t flags) {
RegisterPrefAndNotify(path, new base::DictionaryValue(), flags);
}
void PrefRegistrySimple::RegisterDictionaryPref(
const std::string& path,
base::DictionaryValue* default_value,
- uint32 flags) {
+ uint32_t flags) {
RegisterPrefAndNotify(path, default_value, flags);
}
void PrefRegistrySimple::RegisterInt64Pref(const std::string& path,
- int64 default_value,
- uint32 flags) {
+ int64_t default_value,
+ uint32_t flags) {
RegisterPrefAndNotify(
path, new base::StringValue(base::Int64ToString(default_value)), flags);
}
void PrefRegistrySimple::RegisterUint64Pref(const std::string& path,
- uint64 default_value,
- uint32 flags) {
+ uint64_t default_value,
+ uint32_t flags) {
RegisterPrefAndNotify(
path, new base::StringValue(base::Uint64ToString(default_value)), flags);
}
void PrefRegistrySimple::OnPrefRegistered(const std::string& path,
base::Value* default_value,
- uint32 flags) {
-}
+ uint32_t flags) {}
void PrefRegistrySimple::RegisterPrefAndNotify(const std::string& path,
base::Value* default_value,
- uint32 flags) {
+ uint32_t flags) {
RegisterPreference(path, default_value, flags);
OnPrefRegistered(path, default_value, flags);
}
« no previous file with comments | « base/prefs/pref_registry_simple.h ('k') | base/prefs/pref_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698