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

Unified Diff: base/prefs/pref_registry.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.h ('k') | base/prefs/pref_registry_simple.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/prefs/pref_registry.cc
diff --git a/base/prefs/pref_registry.cc b/base/prefs/pref_registry.cc
index 74f4b5220887ee76e4596e401e806c766d6755c9..77fb9a59ad0b068cb6c05ec9b4c03110657554b0 100644
--- a/base/prefs/pref_registry.cc
+++ b/base/prefs/pref_registry.cc
@@ -17,7 +17,8 @@ PrefRegistry::PrefRegistry()
PrefRegistry::~PrefRegistry() {
}
-uint32 PrefRegistry::GetRegistrationFlags(const std::string& pref_name) const {
+uint32_t PrefRegistry::GetRegistrationFlags(
+ const std::string& pref_name) const {
const auto& it = registration_flags_.find(pref_name);
if (it == registration_flags_.end())
return NO_REGISTRATION_FLAGS;
@@ -50,7 +51,7 @@ void PrefRegistry::SetDefaultPrefValue(const std::string& pref_name,
void PrefRegistry::RegisterPreference(const std::string& path,
base::Value* default_value,
- uint32 flags) {
+ uint32_t flags) {
base::Value::Type orig_type = default_value->GetType();
DCHECK(orig_type != base::Value::TYPE_NULL &&
orig_type != base::Value::TYPE_BINARY) <<
« no previous file with comments | « base/prefs/pref_registry.h ('k') | base/prefs/pref_registry_simple.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698