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

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

Issue 2409423005: Compare GURLs to kUrlConstants with .spec() and string equality (Closed)
Patch Set: git cl format Created 4 years, 2 months 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_utils.cc
diff --git a/chrome/browser/history/history_utils.cc b/chrome/browser/history/history_utils.cc
index cbb66d4f35e3a1e1c3f3e8ae12428ebfb2a13931..1ea9680e1cec710d744725d739e35f8d0ad97097 100644
--- a/chrome/browser/history/history_utils.cc
+++ b/chrome/browser/history/history_utils.cc
@@ -25,7 +25,7 @@ bool CanAddURLToHistory(const GURL& url) {
url.SchemeIs(dom_distiller::kDomDistillerScheme))
return false;
- if (url == GURL(url::kAboutBlankURL))
+ if (url.spec() == url::kAboutBlankURL)
return false;
return true;

Powered by Google App Engine
This is Rietveld 408576698