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

Unified Diff: content/browser/webui/content_web_ui_controller_factory.cc

Issue 1421743002: Implement chrome://network-errors for direct access to network error interstitials (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix presubmit errors Created 5 years 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/webui/content_web_ui_controller_factory.cc
diff --git a/content/browser/webui/content_web_ui_controller_factory.cc b/content/browser/webui/content_web_ui_controller_factory.cc
index e2c6c547a03c559176336b4dca7f6bc290497e28..f4bf627d21e19953ffa256d4d2cb5a6595b58bad 100644
--- a/content/browser/webui/content_web_ui_controller_factory.cc
+++ b/content/browser/webui/content_web_ui_controller_factory.cc
@@ -9,6 +9,7 @@
#include "content/browser/gpu/gpu_internals_ui.h"
#include "content/browser/indexed_db/indexed_db_internals_ui.h"
#include "content/browser/media/media_internals_ui.h"
+#include "content/browser/net/network_errors_listing_ui.h"
#include "content/browser/service_worker/service_worker_internals_ui.h"
#include "content/browser/tracing/tracing_ui.h"
#include "content/public/browser/storage_partition.h"
@@ -36,7 +37,8 @@ WebUI::TypeID ContentWebUIControllerFactory::GetWebUIType(
url.host() == kChromeUIMediaInternalsHost ||
url.host() == kChromeUIServiceWorkerInternalsHost ||
url.host() == kChromeUIAccessibilityHost ||
- url.host() == kChromeUIAppCacheInternalsHost) {
+ url.host() == kChromeUIAppCacheInternalsHost ||
+ url.host() == kChromeUINetworkErrorsListingHost) {
return const_cast<ContentWebUIControllerFactory*>(this);
}
return WebUI::kNoWebUI;
@@ -69,6 +71,8 @@ WebUIController* ContentWebUIControllerFactory::CreateWebUIControllerForURL(
return new AccessibilityUI(web_ui);
if (url.host() == kChromeUIServiceWorkerInternalsHost)
return new ServiceWorkerInternalsUI(web_ui);
+ if (url.host() == kChromeUINetworkErrorsListingHost)
+ return new NetworkErrorsListingUI(web_ui);
#if !defined(OS_ANDROID)
if (url.host() == kChromeUITracingHost)
return new TracingUI(web_ui);

Powered by Google App Engine
This is Rietveld 408576698