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

Unified Diff: components/filesystem/util.cc

Issue 1546143002: Switch to standard integer types in components/, part 1 of 4. (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 | « components/filesystem/util.h ('k') | components/flags_ui/feature_entry_macros.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/filesystem/util.cc
diff --git a/components/filesystem/util.cc b/components/filesystem/util.cc
index 257d0083dd8502b287d2982b381e7aa19b5dc371..d2e7772af52a8f2fd0647f18bae44edf01e1463d 100644
--- a/components/filesystem/util.cc
+++ b/components/filesystem/util.cc
@@ -13,6 +13,7 @@
#include "base/logging.h"
#include "base/strings/string_util.h"
+#include "build/build_config.h"
#include "mojo/public/cpp/bindings/string.h"
#if defined(OS_WIN)
@@ -22,28 +23,28 @@
// module filesystem has various constants which must line up with enum values
// in base::File::Flags.
static_assert(filesystem::kFlagOpen ==
- static_cast<uint32>(base::File::FLAG_OPEN),
+ static_cast<uint32_t>(base::File::FLAG_OPEN),
"");
static_assert(filesystem::kFlagCreate ==
- static_cast<uint32>(base::File::FLAG_CREATE),
+ static_cast<uint32_t>(base::File::FLAG_CREATE),
"");
static_assert(filesystem::kFlagOpenAlways ==
- static_cast<uint32>(base::File::FLAG_OPEN_ALWAYS),
+ static_cast<uint32_t>(base::File::FLAG_OPEN_ALWAYS),
"");
static_assert(filesystem::kCreateAlways ==
- static_cast<uint32>(base::File::FLAG_CREATE_ALWAYS),
+ static_cast<uint32_t>(base::File::FLAG_CREATE_ALWAYS),
"");
static_assert(filesystem::kFlagOpenTruncated ==
- static_cast<uint32>(base::File::FLAG_OPEN_TRUNCATED),
+ static_cast<uint32_t>(base::File::FLAG_OPEN_TRUNCATED),
"");
static_assert(filesystem::kFlagRead ==
- static_cast<uint32>(base::File::FLAG_READ),
+ static_cast<uint32_t>(base::File::FLAG_READ),
"");
static_assert(filesystem::kFlagWrite ==
- static_cast<uint32>(base::File::FLAG_WRITE),
+ static_cast<uint32_t>(base::File::FLAG_WRITE),
"");
static_assert(filesystem::kFlagAppend ==
- static_cast<uint32>(base::File::FLAG_APPEND),
+ static_cast<uint32_t>(base::File::FLAG_APPEND),
"");
// filesystem.Error in types.mojom must be the same as base::File::Error.
« no previous file with comments | « components/filesystem/util.h ('k') | components/flags_ui/feature_entry_macros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698