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

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

Issue 12153002: Move chrome://media-internals to content. This allows us to hide implementation details from the pu… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 11 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/webui/content_web_ui_controller_factory.cc
===================================================================
--- content/browser/webui/content_web_ui_controller_factory.cc (revision 179909)
+++ content/browser/webui/content_web_ui_controller_factory.cc (working copy)
@@ -5,6 +5,7 @@
#include "content/browser/webui/content_web_ui_controller_factory.h"
#include "content/browser/gpu/gpu_internals_ui.h"
+#include "content/browser/media/media_internals_ui.h"
#include "content/browser/media/webrtc_internals_ui.h"
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_ui.h"
@@ -15,7 +16,8 @@
WebUI::TypeID ContentWebUIControllerFactory::GetWebUIType(
BrowserContext* browser_context, const GURL& url) const {
if (url.host() == chrome::kChromeUIWebRTCInternalsHost ||
- url.host() == chrome::kChromeUIGpuHost) {
+ url.host() == chrome::kChromeUIGpuHost ||
+ url.host() == chrome::kChromeUIMediaInternalsHost) {
return const_cast<ContentWebUIControllerFactory*>(this);
}
return WebUI::kNoWebUI;
@@ -37,6 +39,8 @@
return new WebRTCInternalsUI(web_ui);
if (url.host() == chrome::kChromeUIGpuHost)
return new GpuInternalsUI(web_ui);
+ if (url.host() == chrome::kChromeUIMediaInternalsHost)
+ return new MediaInternalsUI(web_ui);
return NULL;
}

Powered by Google App Engine
This is Rietveld 408576698