| Index: content/common/origin_util.cc
|
| diff --git a/content/common/origin_util.cc b/content/common/origin_util.cc
|
| index 2fdc553b5c55aeca570ec772f5ee53573222fe64..4de5ccb62c661c21391d9e36c10e3626786ceb66 100644
|
| --- a/content/common/origin_util.cc
|
| +++ b/content/common/origin_util.cc
|
| @@ -36,8 +36,7 @@ bool IsOriginSecure(const GURL& url) {
|
| return true;
|
| }
|
|
|
| - std::string hostname = url.HostNoBrackets();
|
| - if (net::IsLocalhost(hostname))
|
| + if (net::IsLocalhost(url.HostNoBracketsPiece()))
|
| return true;
|
|
|
| if (base::ContainsValue(url::GetSecureSchemes(), url.scheme()))
|
| @@ -79,7 +78,7 @@ bool IsPotentiallyTrustworthyOrigin(const url::Origin& origin) {
|
|
|
| if (base::ContainsValue(url::GetSecureSchemes(), origin.scheme()) ||
|
| base::ContainsValue(url::GetLocalSchemes(), origin.scheme()) ||
|
| - net::IsLocalhost(origin.GetURL().HostNoBrackets())) {
|
| + net::IsLocalhost(origin.GetURL().HostNoBracketsPiece())) {
|
| return true;
|
| }
|
|
|
|
|