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

Unified Diff: sync/internal_api/syncapi_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/internal_api/syncapi_server_connection_manager.h ('k') | sync/internal_api/test/test_entry_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/internal_api/syncapi_server_connection_manager.cc
diff --git a/sync/internal_api/syncapi_server_connection_manager.cc b/sync/internal_api/syncapi_server_connection_manager.cc
index 35ca1e2a5ec9b9af0f7bb7a880f43ed07d0bf16e..16646ec7f4df4ee93cbb979c7d8b371b072422e8 100644
--- a/sync/internal_api/syncapi_server_connection_manager.cc
+++ b/sync/internal_api/syncapi_server_connection_manager.cc
@@ -4,6 +4,8 @@
#include "sync/internal_api/syncapi_server_connection_manager.h"
+#include <stdint.h>
+
#include "net/base/net_errors.h"
#include "net/http/http_status_code.h"
#include "sync/internal_api/public/http_post_provider_factory.h"
@@ -60,9 +62,9 @@ bool SyncAPIBridgedConnection::Init(const char* path,
// We got a server response, copy over response codes and content.
response->response_code = response_code;
response->content_length =
- static_cast<int64>(http->GetResponseContentLength());
+ static_cast<int64_t>(http->GetResponseContentLength());
response->payload_length =
- static_cast<int64>(http->GetResponseContentLength());
+ static_cast<int64_t>(http->GetResponseContentLength());
if (response->response_code < 400)
response->server_status = HttpResponse::SERVER_CONNECTION_OK;
else if (response->response_code == net::HTTP_UNAUTHORIZED)
« no previous file with comments | « sync/internal_api/syncapi_server_connection_manager.h ('k') | sync/internal_api/test/test_entry_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698