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

Unified Diff: url/scheme_host_port.cc

Issue 1542703002: Switch to standard integer types in url/. (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 | « url/scheme_host_port.h ('k') | url/scheme_host_port_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: url/scheme_host_port.cc
diff --git a/url/scheme_host_port.cc b/url/scheme_host_port.cc
index 6e84b184ea5b918e2a685a057ac94f7d917dba5b..4d0f0007595561d99bb54ffb61c57cee033b21e5 100644
--- a/url/scheme_host_port.cc
+++ b/url/scheme_host_port.cc
@@ -4,6 +4,7 @@
#include "url/scheme_host_port.h"
+#include <stdint.h>
#include <string.h>
#include <tuple>
@@ -47,7 +48,7 @@ bool IsCanonicalHost(const base::StringPiece& host) {
bool IsValidInput(const base::StringPiece& scheme,
const base::StringPiece& host,
- uint16 port) {
+ uint16_t port) {
SchemeType scheme_type = SCHEME_WITH_PORT;
bool is_standard = GetStandardSchemeType(
scheme.data(),
@@ -103,7 +104,7 @@ SchemeHostPort::SchemeHostPort() : port_(0) {
SchemeHostPort::SchemeHostPort(base::StringPiece scheme,
base::StringPiece host,
- uint16 port)
+ uint16_t port)
: port_(0) {
if (!IsValidInput(scheme, host, port))
return;
« no previous file with comments | « url/scheme_host_port.h ('k') | url/scheme_host_port_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698