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

Unified Diff: components/filesystem/file_impl.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/file_impl.h ('k') | components/filesystem/file_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/filesystem/file_impl.cc
diff --git a/components/filesystem/file_impl.cc b/components/filesystem/file_impl.cc
index 4925f9acaec5bd574ec9ec86af782d47f90ee70c..cd4634ec948c658c82182ec678ffed5a174012db 100644
--- a/components/filesystem/file_impl.cc
+++ b/components/filesystem/file_impl.cc
@@ -4,12 +4,14 @@
#include "components/filesystem/file_impl.h"
+#include <stddef.h>
#include <stdint.h>
#include <limits>
#include "base/files/file_path.h"
#include "base/files/scoped_file.h"
#include "base/logging.h"
+#include "build/build_config.h"
#include "components/filesystem/util.h"
#include "mojo/platform_handle/platform_handle_functions.h"
@@ -25,7 +27,7 @@ const size_t kMaxReadSize = 1 * 1024 * 1024; // 1 MB.
FileImpl::FileImpl(mojo::InterfaceRequest<File> request,
const base::FilePath& path,
- uint32 flags)
+ uint32_t flags)
: binding_(this, request.Pass()), file_(path, flags) {
DCHECK(file_.IsValid());
}
@@ -158,13 +160,14 @@ void FileImpl::Seek(int64_t offset,
return;
}
- int64 position = file_.Seek(static_cast<base::File::Whence>(whence), offset);
+ int64_t position =
+ file_.Seek(static_cast<base::File::Whence>(whence), offset);
if (position < 0) {
callback.Run(FILE_ERROR_FAILED, 0);
return;
}
- callback.Run(FILE_ERROR_OK, static_cast<int64>(position));
+ callback.Run(FILE_ERROR_OK, static_cast<int64_t>(position));
}
void FileImpl::Stat(const StatCallback& callback) {
« no previous file with comments | « components/filesystem/file_impl.h ('k') | components/filesystem/file_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698