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

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

Issue 281323004: Do not build webrtc-internals when ENABLE_WEBRTC is false. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sync Created 6 years, 6 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
« no previous file with comments | « no previous file | content/content_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « no previous file | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698