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 45a38adb7072ca5f09760c27d421f6e9cf433c06..6b7b760e8d5ec624ea37229ef6625c11d1deda9b 100644 |
--- a/content/browser/webui/content_web_ui_controller_factory.cc |
+++ b/content/browser/webui/content_web_ui_controller_factory.cc |
@@ -9,7 +9,9 @@ |
#include "content/browser/indexed_db/indexed_db_internals_ui.h" |
#include "content/browser/media/media_internals_ui.h" |
#include "content/browser/media/webrtc_internals_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" |
#include "content/public/browser/web_contents.h" |
#include "content/public/browser/web_ui.h" |
#include "content/public/common/url_constants.h" |
@@ -25,6 +27,7 @@ WebUI::TypeID ContentWebUIControllerFactory::GetWebUIType( |
url.host() == kChromeUIGpuHost || |
url.host() == kChromeUIIndexedDBInternalsHost || |
url.host() == kChromeUIMediaInternalsHost || |
+ url.host() == kChromeUIServiceWorkerInternalsHost || |
url.host() == kChromeUIAccessibilityHost) { |
return const_cast<ContentWebUIControllerFactory*>(this); |
} |
@@ -53,6 +56,8 @@ WebUIController* ContentWebUIControllerFactory::CreateWebUIControllerForURL( |
return new MediaInternalsUI(web_ui); |
if (url.host() == kChromeUIAccessibilityHost) |
return new AccessibilityUI(web_ui); |
+ if (url.host() == kChromeUIServiceWorkerInternalsHost) |
+ return new ServiceWorkerInternalsUI(web_ui); |
#if !defined(OS_ANDROID) |
if (url.host() == kChromeUITracingHost) |
return new TracingUI(web_ui); |