| Index: components/url_formatter/url_formatter.cc
|
| diff --git a/components/url_formatter/url_formatter.cc b/components/url_formatter/url_formatter.cc
|
| index 59b072033454744a22f4e662f6ecb3ea5324bfbd..43b53412202bea9b87c8d46a6dccd4a85ceb626d 100644
|
| --- a/components/url_formatter/url_formatter.cc
|
| +++ b/components/url_formatter/url_formatter.cc
|
| @@ -778,7 +778,7 @@ bool CanStripTrailingSlash(const GURL& url) {
|
| // Omit the path only for standard, non-file URLs with nothing but "/" after
|
| // the hostname.
|
| return url.IsStandard() && !url.SchemeIsFile() && !url.SchemeIsFileSystem() &&
|
| - !url.has_query() && !url.has_ref() && url.path() == "/";
|
| + !url.has_query() && !url.has_ref() && url.path_piece() == "/";
|
| }
|
|
|
| void AppendFormattedHost(const GURL& url, base::string16* output) {
|
|
|