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

Unified Diff: chrome/browser/safe_browsing/browser_feature_extractor.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
Index: chrome/browser/safe_browsing/browser_feature_extractor.cc
diff --git a/chrome/browser/safe_browsing/browser_feature_extractor.cc b/chrome/browser/safe_browsing/browser_feature_extractor.cc
index 392dda74d25aa597dbe1d07c76fca24b139c9709..aee391d4d7bc971c3d34fb5cd92fef05e574f20e 100644
--- a/chrome/browser/safe_browsing/browser_feature_extractor.cc
+++ b/chrome/browser/safe_browsing/browser_feature_extractor.cc
@@ -212,7 +212,7 @@ void BrowserFeatureExtractor::ExtractFeatures(const BrowseInfo* info,
// be cautious.
url_index = index;
} else if (index < url_index) {
- if (entry->GetURL().host() == request_url.host()) {
+ if (entry->GetURL().host_piece() == request_url.host_piece()) {
first_host_index = index;
} else {
// We have found the possibly phishing url, but we are no longer on the
« no previous file with comments | « chrome/browser/renderer_context_menu/render_view_context_menu.cc ('k') | chrome/browser/search/iframe_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698