| Index: net/base/net_util.cc
|
| diff --git a/net/base/net_util.cc b/net/base/net_util.cc
|
| index 126fc327648869bc9059ba31c061ad78ca08633d..7eaf8d865215ee2e25bcef69b10701303a3e358c 100644
|
| --- a/net/base/net_util.cc
|
| +++ b/net/base/net_util.cc
|
| @@ -1694,7 +1694,9 @@ void GetIdentityFromURL(const GURL& url,
|
| }
|
|
|
| std::string GetHostOrSpecFromURL(const GURL& url) {
|
| - return url.has_host() ? TrimEndingDot(url.host()) : url.spec();
|
| + return url.has_host() ?
|
| + TrimEndingDot(url.host()) :
|
| + (url.is_valid() ? url.spec() : GURL::EmptyGURL().spec());
|
| }
|
|
|
| void AppendFormattedHost(const GURL& url,
|
|
|