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

Unified Diff: chrome/browser/history/history_tab_helper.cc

Issue 2485253002: Remove unnecessary calls to GURL() (Closed)
Patch Set: Assert that StringPiece must always be canonicalized. Fix some constants. 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/history/history_tab_helper.cc
diff --git a/chrome/browser/history/history_tab_helper.cc b/chrome/browser/history/history_tab_helper.cc
index 9124655a5df01854dc13bf33cb57d5a750915b64..0117be104244d9ee3576af72af211fb497971615 100644
--- a/chrome/browser/history/history_tab_helper.cc
+++ b/chrome/browser/history/history_tab_helper.cc
@@ -69,7 +69,7 @@ HistoryTabHelper::CreateHistoryAddPageArgs(
// Clicks on content suggestions on the NTP should not contribute to the
// Most Visited tiles in the NTP.
const bool consider_for_ntp_most_visited =
- params.referrer.url != GURL(kChromeContentSuggestionsReferrer);
+ params.referrer.url != kChromeContentSuggestionsReferrer;
history::HistoryAddPageArgs add_page_args(
params.url, timestamp, history::ContextIDForWebContents(web_contents()),
« no previous file with comments | « chrome/browser/extensions/tab_helper.cc ('k') | chrome/browser/permissions/permission_decision_auto_blocker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698