Index: components/policy/core/browser/url_blacklist_manager.cc |
diff --git a/components/policy/core/browser/url_blacklist_manager.cc b/components/policy/core/browser/url_blacklist_manager.cc |
index 4b4d35e249dd79e120ed990b5cb309543b4f1dec..5d85138e5dff7e9e31b43e671ef66325fb7ee0f7 100644 |
--- a/components/policy/core/browser/url_blacklist_manager.cc |
+++ b/components/policy/core/browser/url_blacklist_manager.cc |
@@ -3,10 +3,6 @@ |
// found in the LICENSE file. |
#include "components/policy/core/browser/url_blacklist_manager.h" |
- |
-#include <stdint.h> |
- |
-#include <limits> |
#include "base/bind.h" |
#include "base/files/file_path.h" |
@@ -141,7 +137,7 @@ |
std::string scheme; |
std::string host; |
- uint16_t port; |
+ uint16 port; |
std::string path; |
std::string query; |
int number_of_key_value_pairs; |
@@ -239,7 +235,7 @@ |
std::string* scheme, |
std::string* host, |
bool* match_subdomains, |
- uint16_t* port, |
+ uint16* port, |
std::string* path, |
std::string* query) { |
url::Parsed parsed; |
@@ -302,7 +298,7 @@ |
&int_port)) { |
return false; |
} |
- if (int_port <= 0 || int_port > std::numeric_limits<uint16_t>::max()) |
+ if (int_port <= 0 || int_port > kuint16max) |
return false; |
*port = int_port; |
} else { |
@@ -332,7 +328,7 @@ |
const std::string& scheme, |
const std::string& host, |
bool match_subdomains, |
- uint16_t port, |
+ uint16 port, |
const std::string& path, |
const std::string& query, |
bool allow) { |