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

Unified Diff: chrome/browser/ui/search/search_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/ui/search/search_tab_helper.cc
diff --git a/chrome/browser/ui/search/search_tab_helper.cc b/chrome/browser/ui/search/search_tab_helper.cc
index f03b427cf95e11b8cfb2760f7671fb79a2981369..3875174c0eb231a5b39723cb0d2d8198be42cf93 100644
--- a/chrome/browser/ui/search/search_tab_helper.cc
+++ b/chrome/browser/ui/search/search_tab_helper.cc
@@ -59,7 +59,7 @@ bool IsCacheableNTP(const content::WebContents* contents) {
const content::NavigationEntry* entry =
contents->GetController().GetLastCommittedEntry();
return search::NavEntryIsInstantNTP(contents, entry) &&
- entry->GetURL() != GURL(chrome::kChromeSearchLocalNtpUrl);
+ entry->GetURL() != chrome::kChromeSearchLocalNtpUrl;
}
bool IsNTP(const content::WebContents* contents) {

Powered by Google App Engine
This is Rietveld 408576698