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

Unified Diff: chrome/browser/browser_about_handler.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/browser_about_handler.cc
diff --git a/chrome/browser/browser_about_handler.cc b/chrome/browser/browser_about_handler.cc
index 30899a53a8e80f8df22ad8feaa40252a50c1c953..ea5bde7e1ae4eb3c691ed0ab8059cb0df71f8d4c 100644
--- a/chrome/browser/browser_about_handler.cc
+++ b/chrome/browser/browser_about_handler.cc
@@ -42,7 +42,7 @@ bool WillHandleBrowserAboutURL(GURL* url,
FixupBrowserAboutURL(url, browser_context);
// Check that about: URLs are fixed up to chrome: by url_formatter::FixupURL.
- DCHECK((*url == GURL(url::kAboutBlankURL)) ||
+ DCHECK((*url == url::kAboutBlankURL) ||
!url->SchemeIs(url::kAboutScheme));
// Only handle chrome://foo/, url_formatter::FixupURL translates about:foo.

Powered by Google App Engine
This is Rietveld 408576698