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

Unified Diff: content/browser/browser_url_handler_impl.cc

Issue 160743002: Remove duplicated code in favor of IsRendererDebugURL. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix typo Created 6 years, 10 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
« no previous file with comments | « no previous file | content/browser/webui/web_ui_controller_factory_registry.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/browser_url_handler_impl.cc
diff --git a/content/browser/browser_url_handler_impl.cc b/content/browser/browser_url_handler_impl.cc
index 4eaf1ec3d69dc9a70bc95c0a86ce250c05a269a8..27f2e4b65eb7bacf23d62df9532c4155ed85a11b 100644
--- a/content/browser/browser_url_handler_impl.cc
+++ b/content/browser/browser_url_handler_impl.cc
@@ -87,10 +87,7 @@ static bool DebugURLHandler(GURL* url, BrowserContext* browser_context) {
}
// Circumvent processing URLs that the renderer process will handle.
- return *url == GURL(kChromeUICrashURL) ||
- *url == GURL(kChromeUIHangURL) ||
- *url == GURL(kChromeUIKillURL) ||
- *url == GURL(kChromeUIShorthangURL);
+ return IsRendererDebugURL(*url);
}
// static
« no previous file with comments | « no previous file | content/browser/webui/web_ui_controller_factory_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698