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

Unified Diff: url/origin.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/origin.h ('k') | url/origin_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: url/origin.cc
diff --git a/url/origin.cc b/url/origin.cc
index 9d0c4f08de0165e3a201408f22c8778d5b4acf4e..a0ec2f803e6f2547bdcc443c338d06b68cefbb3a 100644
--- a/url/origin.cc
+++ b/url/origin.cc
@@ -4,6 +4,7 @@
#include "url/origin.h"
+#include <stdint.h>
#include <string.h>
#include "base/logging.h"
@@ -38,7 +39,7 @@ Origin::Origin(const GURL& url) : unique_(true) {
unique_ = tuple_.IsInvalid();
}
-Origin::Origin(base::StringPiece scheme, base::StringPiece host, uint16 port)
+Origin::Origin(base::StringPiece scheme, base::StringPiece host, uint16_t port)
: tuple_(scheme, host, port) {
unique_ = tuple_.IsInvalid();
}
@@ -50,7 +51,7 @@ Origin::~Origin() {
Origin Origin::UnsafelyCreateOriginWithoutNormalization(
base::StringPiece scheme,
base::StringPiece host,
- uint16 port) {
+ uint16_t port) {
return Origin(scheme, host, port);
}
« no previous file with comments | « url/origin.h ('k') | url/origin_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698