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

Unified Diff: sync/engine/net/server_connection_manager.cc

Issue 1545553003: Switch to standard integer types in sync/. (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 | « sync/engine/net/server_connection_manager.h ('k') | sync/engine/net/url_translator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/engine/net/server_connection_manager.cc
diff --git a/sync/engine/net/server_connection_manager.cc b/sync/engine/net/server_connection_manager.cc
index 2531c97bb972f345d06ed25649fd0660803a7f2c..83fbafe24e8c8d5fe7572b2cd1257b37c3b43a96 100644
--- a/sync/engine/net/server_connection_manager.cc
+++ b/sync/engine/net/server_connection_manager.cc
@@ -5,6 +5,7 @@
#include "sync/engine/net/server_connection_manager.h"
#include <errno.h>
+#include <stdint.h>
#include <ostream>
#include <string>
@@ -90,8 +91,8 @@ bool ServerConnectionManager::Connection::ReadBufferResponse(
if (require_response && (1 > response->content_length))
return false;
- const int64 bytes_read = ReadResponse(buffer_out,
- static_cast<int>(response->content_length));
+ const int64_t bytes_read =
+ ReadResponse(buffer_out, static_cast<int>(response->content_length));
if (bytes_read != response->content_length) {
response->server_status = HttpResponse::IO_ERROR;
return false;
@@ -102,8 +103,8 @@ bool ServerConnectionManager::Connection::ReadBufferResponse(
bool ServerConnectionManager::Connection::ReadDownloadResponse(
HttpResponse* response,
string* buffer_out) {
- const int64 bytes_read = ReadResponse(buffer_out,
- static_cast<int>(response->content_length));
+ const int64_t bytes_read =
+ ReadResponse(buffer_out, static_cast<int>(response->content_length));
if (bytes_read != response->content_length) {
LOG(ERROR) << "Mismatched content lengths, server claimed " <<
« no previous file with comments | « sync/engine/net/server_connection_manager.h ('k') | sync/engine/net/url_translator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698