| Index: content/browser/webui/content_web_ui_controller_factory.cc
|
| ===================================================================
|
| --- content/browser/webui/content_web_ui_controller_factory.cc (revision 179949)
|
| +++ content/browser/webui/content_web_ui_controller_factory.cc (working copy)
|
| @@ -6,6 +6,7 @@
|
|
|
| #include "content/browser/gpu/gpu_internals_ui.h"
|
| #include "content/browser/media/webrtc_internals_ui.h"
|
| +#include "content/browser/tracing/tracing_ui.h"
|
| #include "content/public/browser/web_contents.h"
|
| #include "content/public/browser/web_ui.h"
|
| #include "content/public/common/url_constants.h"
|
| @@ -15,6 +16,9 @@
|
| WebUI::TypeID ContentWebUIControllerFactory::GetWebUIType(
|
| BrowserContext* browser_context, const GURL& url) const {
|
| if (url.host() == chrome::kChromeUIWebRTCInternalsHost ||
|
| +#if !defined(OS_ANDROID)
|
| + url.host() == chrome::kChromeUITracingHost ||
|
| +#endif
|
| url.host() == chrome::kChromeUIGpuHost) {
|
| return const_cast<ContentWebUIControllerFactory*>(this);
|
| }
|
| @@ -37,6 +41,10 @@
|
| return new WebRTCInternalsUI(web_ui);
|
| if (url.host() == chrome::kChromeUIGpuHost)
|
| return new GpuInternalsUI(web_ui);
|
| +#if !defined(OS_ANDROID)
|
| + if (url.host() == chrome::kChromeUITracingHost)
|
| + return new TracingUI(web_ui);
|
| +#endif
|
|
|
| return NULL;
|
| }
|
|
|