Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(351)

Unified Diff: components/omnibox/browser/history_url_provider.cc

Issue 2478573004: Convert GURL::{host,path} to GURL::{host_piece,path_piece} for ==. (Closed)
Patch Set: rebase to #431874 Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/ntp_tiles/most_visited_sites.cc ('k') | components/omnibox/browser/omnibox_edit_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/omnibox/browser/history_url_provider.cc
diff --git a/components/omnibox/browser/history_url_provider.cc b/components/omnibox/browser/history_url_provider.cc
index 433c8d1c9a54fd4839979df031aafc9f92d66bfe..08cd7a99355ca7f5927fafbf5afb51dfc6bc7106 100644
--- a/components/omnibox/browser/history_url_provider.cc
+++ b/components/omnibox/browser/history_url_provider.cc
@@ -945,8 +945,8 @@ bool HistoryURLProvider::FixupExactSuggestion(
// which will have empty reference fragments.)
if ((type == UNVISITED_INTRANET) &&
(params->input.type() != metrics::OmniboxInputType::URL) &&
- url.username().empty() && url.password().empty() &&
- url.port().empty() && (url.path() == "/") && url.query().empty() &&
+ url.username().empty() && url.password().empty() && url.port().empty() &&
+ (url.path_piece() == "/") && url.query().empty() &&
(parsed.CountCharactersBefore(url::Parsed::REF, true) !=
parsed.CountCharactersBefore(url::Parsed::REF, false))) {
return false;
« no previous file with comments | « components/ntp_tiles/most_visited_sites.cc ('k') | components/omnibox/browser/omnibox_edit_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698