| Index: url/url_util.cc
|
| diff --git a/url/url_util.cc b/url/url_util.cc
|
| index 0b3044dc854487cf56e99462d033c0bd671275ed..b3e360424152668e0a786883ad206734fc657366 100644
|
| --- a/url/url_util.cc
|
| +++ b/url/url_util.cc
|
| @@ -538,6 +538,14 @@ bool DomainIs(base::StringPiece canonicalized_host,
|
| return true;
|
| }
|
|
|
| +bool HostIsIPAddress(base::StringPiece host) {
|
| + url::RawCanonOutputT<char, 128> ignored_output;
|
| + url::CanonHostInfo host_info;
|
| + url::CanonicalizeIPAddress(host.data(), Component(0, host.length()),
|
| + &ignored_output, &host_info);
|
| + return host_info.IsIPAddress();
|
| +}
|
| +
|
| bool Canonicalize(const char* spec,
|
| int spec_len,
|
| bool trim_path_end,
|
|
|