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

Unified Diff: components/pref_registry/pref_registry_syncable.h

Issue 1551433002: Switch to standard integer types in components/, part 3 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more 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
Index: components/pref_registry/pref_registry_syncable.h
diff --git a/components/pref_registry/pref_registry_syncable.h b/components/pref_registry/pref_registry_syncable.h
index 3a0b1d681bb4abbf4b05b4e9e6f982b23b72a101..88c3b01964b99bf01f35d45464b1311469a3fb1b 100644
--- a/components/pref_registry/pref_registry_syncable.h
+++ b/components/pref_registry/pref_registry_syncable.h
@@ -5,9 +5,12 @@
#ifndef COMPONENTS_PREF_REGISTRY_PREF_REGISTRY_SYNCABLE_H_
#define COMPONENTS_PREF_REGISTRY_PREF_REGISTRY_SYNCABLE_H_
+#include <stdint.h>
+
#include <string>
#include "base/callback.h"
+#include "base/macros.h"
#include "base/prefs/pref_registry_simple.h"
namespace base {
@@ -42,7 +45,7 @@ class PrefRegistrySyncable : public PrefRegistrySimple {
// should ever be specified.
//
// Note: These must NOT overlap with PrefRegistry::PrefRegistrationFlags.
- enum PrefRegistrationFlags : uint32 {
+ enum PrefRegistrationFlags : uint32_t {
// The pref will be synced.
SYNCABLE_PREF = 1 << 0,
@@ -53,7 +56,7 @@ class PrefRegistrySyncable : public PrefRegistrySimple {
SYNCABLE_PRIORITY_PREF = 1 << 1,
};
- typedef base::Callback<void(const std::string& path, uint32 flags)>
+ typedef base::Callback<void(const std::string& path, uint32_t flags)>
SyncableRegistrationCallback;
PrefRegistrySyncable();
@@ -77,7 +80,7 @@ class PrefRegistrySyncable : public PrefRegistrySimple {
// PrefRegistrySimple overrides.
void OnPrefRegistered(const std::string& path,
base::Value* default_value,
- uint32 flags) override;
+ uint32_t flags) override;
SyncableRegistrationCallback callback_;
« no previous file with comments | « components/precache/core/precache_url_table_unittest.cc ('k') | components/pref_registry/pref_registry_syncable.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698