| 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 6b7b760e8d5ec624ea37229ef6625c11d1deda9b..7a9263111f395e7b593854366e3c836851ec4fac 100644
|
| --- a/content/browser/webui/content_web_ui_controller_factory.cc
|
| +++ b/content/browser/webui/content_web_ui_controller_factory.cc
|
| @@ -8,7 +8,6 @@
|
| #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/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"
|
| @@ -16,6 +15,10 @@
|
| #include "content/public/browser/web_ui.h"
|
| #include "content/public/common/url_constants.h"
|
|
|
| +#if defined(ENABLE_WEBRTC)
|
| +#include "content/browser/media/webrtc_internals_ui.h"
|
| +#endif
|
| +
|
| namespace content {
|
|
|
| WebUI::TypeID ContentWebUIControllerFactory::GetWebUIType(
|
| @@ -46,8 +49,6 @@ bool ContentWebUIControllerFactory::UseWebUIBindingsForURL(
|
|
|
| WebUIController* ContentWebUIControllerFactory::CreateWebUIControllerForURL(
|
| WebUI* web_ui, const GURL& url) const {
|
| - if (url.host() == kChromeUIWebRTCInternalsHost)
|
| - return new WebRTCInternalsUI(web_ui);
|
| if (url.host() == kChromeUIGpuHost)
|
| return new GpuInternalsUI(web_ui);
|
| if (url.host() == kChromeUIIndexedDBInternalsHost)
|
| @@ -63,6 +64,11 @@ WebUIController* ContentWebUIControllerFactory::CreateWebUIControllerForURL(
|
| return new TracingUI(web_ui);
|
| #endif
|
|
|
| +#if defined(ENABLE_WEBRTC)
|
| + if (url.host() == kChromeUIWebRTCInternalsHost)
|
| + return new WebRTCInternalsUI(web_ui);
|
| +#endif
|
| +
|
| return NULL;
|
| }
|
|
|
|
|