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

Unified Diff: components/cronet/android/url_request_context_adapter.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/url_request_context_adapter.cc
diff --git a/components/cronet/android/url_request_context_adapter.cc b/components/cronet/android/url_request_context_adapter.cc
index 1eaefe1133be1baea237168adbeaa94b77320636..9198b7633a000faf10f15a7333862d4f5cd37aa5 100644
--- a/components/cronet/android/url_request_context_adapter.cc
+++ b/components/cronet/android/url_request_context_adapter.cc
@@ -4,11 +4,15 @@
#include "components/cronet/android/url_request_context_adapter.h"
+#include <stddef.h>
+#include <stdint.h>
+
#include <limits>
#include "base/bind.h"
#include "base/files/file_util.h"
#include "base/files/scoped_file.h"
+#include "base/macros.h"
#include "base/message_loop/message_loop.h"
#include "base/single_thread_task_runner.h"
#include "base/time/time.h"
@@ -180,15 +184,15 @@ void URLRequestContextAdapter::InitRequestContextOnNetworkThread() {
continue;
}
- if (quic_hint.port <= std::numeric_limits<uint16>::min() ||
- quic_hint.port > std::numeric_limits<uint16>::max()) {
+ if (quic_hint.port <= std::numeric_limits<uint16_t>::min() ||
+ quic_hint.port > std::numeric_limits<uint16_t>::max()) {
LOG(ERROR) << "Invalid QUIC hint port: "
<< quic_hint.port;
continue;
}
- if (quic_hint.alternate_port <= std::numeric_limits<uint16>::min() ||
- quic_hint.alternate_port > std::numeric_limits<uint16>::max()) {
+ if (quic_hint.alternate_port <= std::numeric_limits<uint16_t>::min() ||
+ quic_hint.alternate_port > std::numeric_limits<uint16_t>::max()) {
LOG(ERROR) << "Invalid QUIC hint alternate port: "
<< quic_hint.alternate_port;
continue;
@@ -198,7 +202,7 @@ void URLRequestContextAdapter::InitRequestContextOnNetworkThread() {
quic_hint.port);
net::AlternativeService alternative_service(
net::AlternateProtocol::QUIC, "",
- static_cast<uint16>(quic_hint.alternate_port));
+ static_cast<uint16_t>(quic_hint.alternate_port));
context_->http_server_properties()->SetAlternativeService(
quic_hint_host_port_pair, alternative_service, 1.0f,
base::Time::Max());
« no previous file with comments | « components/cronet/android/url_request_adapter.cc ('k') | components/cronet/android/wrapped_channel_upload_element_reader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698