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

Unified Diff: chrome/browser/chromeos/fileapi/external_file_url_request_job.cc

Issue 1547093002: Switch to standard integer types in chrome/browser/chromeos/. (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
Index: chrome/browser/chromeos/fileapi/external_file_url_request_job.cc
diff --git a/chrome/browser/chromeos/fileapi/external_file_url_request_job.cc b/chrome/browser/chromeos/fileapi/external_file_url_request_job.cc
index 917cbcbe95efc79ad5da4637d562a22e80087259..a07cf1071cf4ee14e48e9ad1c5a80cc803480ea8 100644
--- a/chrome/browser/chromeos/fileapi/external_file_url_request_job.cc
+++ b/chrome/browser/chromeos/fileapi/external_file_url_request_job.cc
@@ -9,6 +9,7 @@
#include "base/bind.h"
#include "base/logging.h"
+#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/thread_task_runner_handle.h"
#include "chrome/browser/browser_process.h"
@@ -297,8 +298,8 @@ void ExternalFileURLRequestJob::OnFileInfoObtained(
net::URLRequestStatus::FAILED, net::ERR_REQUEST_RANGE_NOT_SATISFIABLE));
return;
}
- const int64 offset = byte_range_.first_byte_position();
- const int64 size =
+ const int64_t offset = byte_range_.first_byte_position();
+ const int64_t size =
byte_range_.last_byte_position() + 1 - byte_range_.first_byte_position();
set_expected_content_size(size);
remaining_bytes_ = size;
@@ -352,7 +353,7 @@ int ExternalFileURLRequestJob::ReadRawData(net::IOBuffer* buf, int buf_size) {
return 0;
const int result = stream_reader_->Read(
- buf, std::min<int64>(buf_size, remaining_bytes_),
+ buf, std::min<int64_t>(buf_size, remaining_bytes_),
base::Bind(&ExternalFileURLRequestJob::OnReadCompleted,
weak_ptr_factory_.GetWeakPtr()));

Powered by Google App Engine
This is Rietveld 408576698