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

Unified Diff: components/cronet/android/cronet_upload_data_stream.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
Index: components/cronet/android/cronet_upload_data_stream.cc
diff --git a/components/cronet/android/cronet_upload_data_stream.cc b/components/cronet/android/cronet_upload_data_stream.cc
index c933f403765bb8bb2e74a6fe71f1b01c1dca9ef9..f3b234e9021566b29ac49e99a588d44754ea14cf 100644
--- a/components/cronet/android/cronet_upload_data_stream.cc
+++ b/components/cronet/android/cronet_upload_data_stream.cc
@@ -9,7 +9,7 @@
namespace cronet {
-CronetUploadDataStream::CronetUploadDataStream(Delegate* delegate, int64 size)
+CronetUploadDataStream::CronetUploadDataStream(Delegate* delegate, int64_t size)
: UploadDataStream(size < 0, 0),
size_(size),
waiting_on_read_(false),
@@ -18,8 +18,7 @@ CronetUploadDataStream::CronetUploadDataStream(Delegate* delegate, int64 size)
rewind_in_progress_(false),
at_front_of_stream_(true),
delegate_(delegate),
- weak_factory_(this) {
-}
+ weak_factory_(this) {}
CronetUploadDataStream::~CronetUploadDataStream() {
delegate_->OnUploadDataStreamDestroyed();
@@ -36,7 +35,7 @@ int CronetUploadDataStream::InitInternal() {
// Set size of non-chunked uploads.
if (size_ >= 0)
- SetSize(static_cast<uint64>(size_));
+ SetSize(static_cast<uint64_t>(size_));
// If already at the front of the stream, nothing to do.
if (at_front_of_stream_) {
« no previous file with comments | « components/cronet/android/cronet_upload_data_stream.h ('k') | components/cronet/android/cronet_url_request_context_adapter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698