Index: content/child/blink_platform_impl.cc |
diff --git a/content/child/blink_platform_impl.cc b/content/child/blink_platform_impl.cc |
index b2432e1059702aa56a6b60038b7f12c9b8f23847..e0f565e46c43dead5e54925f088112f265af0de5 100644 |
--- a/content/child/blink_platform_impl.cc |
+++ b/content/child/blink_platform_impl.cc |
@@ -154,13 +154,6 @@ class ConvertableToTraceFormatWrapper |
blink::WebConvertableToTraceFormat convertable_; |
}; |
-bool isHostnameReservedIPAddress(const std::string& host) { |
- net::IPAddressNumber address; |
- if (!net::ParseURLHostnameToNumber(host, &address)) |
- return false; |
- return net::IsIPAddressReserved(address); |
-} |
- |
} // namespace |
static int ToMessageID(WebLocalizedString::Name name) { |
@@ -498,12 +491,11 @@ WebURLError BlinkPlatformImpl::cancelledError( |
} |
bool BlinkPlatformImpl::isReservedIPAddress( |
- const blink::WebSecurityOrigin& securityOrigin) const { |
- return isHostnameReservedIPAddress(securityOrigin.host().utf8()); |
-} |
- |
-bool BlinkPlatformImpl::isReservedIPAddress(const blink::WebURL& url) const { |
- return isHostnameReservedIPAddress(GURL(url).host()); |
+ const blink::WebString& host) const { |
+ net::IPAddressNumber address; |
+ if (!net::ParseURLHostnameToNumber(host.utf8(), &address)) |
+ return false; |
+ return net::IsIPAddressReserved(address); |
} |
blink::WebThread* BlinkPlatformImpl::createThread(const char* name) { |