| Index: components/history/core/browser/history_match.cc
|
| diff --git a/components/history/core/browser/history_match.cc b/components/history/core/browser/history_match.cc
|
| index 6e252b9c4d25d60286516689dcf9c23b3e6ac1a4..ae9787bc21d1653d0a4aa6933be940342f1ca8a0 100644
|
| --- a/components/history/core/browser/history_match.cc
|
| +++ b/components/history/core/browser/history_match.cc
|
| @@ -32,8 +32,8 @@ bool HistoryMatch::EqualsGURL(const HistoryMatch& h, const GURL& url) {
|
| bool HistoryMatch::IsHostOnly() const {
|
| const GURL& gurl = url_info.url();
|
| DCHECK(gurl.is_valid());
|
| - return (!gurl.has_path() || (gurl.path() == "/")) && !gurl.has_query() &&
|
| - !gurl.has_ref();
|
| + return (!gurl.has_path() || (gurl.path_piece() == "/")) &&
|
| + !gurl.has_query() && !gurl.has_ref();
|
| }
|
|
|
| } // namespace history
|
|
|