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

Unified Diff: content/browser/tab_contents/navigation_controller_impl.cc

Issue 9349010: Move handling of debug urls like chrome://crash, chrome://gpuclean to content. These are for test... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 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
Index: content/browser/tab_contents/navigation_controller_impl.cc
===================================================================
--- content/browser/tab_contents/navigation_controller_impl.cc (revision 120733)
+++ content/browser/tab_contents/navigation_controller_impl.cc (working copy)
@@ -15,6 +15,7 @@
#include "content/browser/in_process_webkit/session_storage_namespace.h"
#include "content/browser/renderer_host/render_view_host.h" // Temporary
#include "content/browser/site_instance_impl.h"
+#include "content/browser/tab_contents/debug_urls.h"
#include "content/browser/tab_contents/interstitial_page.h"
#include "content/browser/tab_contents/navigation_entry_impl.h"
#include "content/browser/tab_contents/tab_contents.h"
@@ -565,6 +566,9 @@
const content::Referrer& referrer,
content::PageTransition transition,
const std::string& extra_headers) {
+ if (content::HandleDebugURL(url, transition))
+ return;
+
// The user initiated a load, we don't need to reload anymore.
needs_reload_ = false;

Powered by Google App Engine
This is Rietveld 408576698