Index: chrome/browser/ui/webui/chrome_web_ui_factory.cc |
=================================================================== |
--- chrome/browser/ui/webui/chrome_web_ui_factory.cc (revision 101584) |
+++ chrome/browser/ui/webui/chrome_web_ui_factory.cc (working copy) |
@@ -25,7 +25,6 @@ |
#include "chrome/browser/ui/webui/history2_ui.h" |
#include "chrome/browser/ui/webui/history_ui.h" |
#include "chrome/browser/ui/webui/html_dialog_ui.h" |
-#include "chrome/browser/ui/webui/hung_renderer_dialog_ui.h" |
#include "chrome/browser/ui/webui/media/media_internals_ui.h" |
#include "chrome/browser/ui/webui/net_internals_ui.h" |
#include "chrome/browser/ui/webui/ntp/new_tab_ui.h" |
@@ -70,10 +69,14 @@ |
#include "chrome/browser/ui/webui/conflicts_ui.h" |
#endif |
-#if defined(OS_POSIX) && !defined(OS_MACOSX) |
+#if defined(WEBUI_DIALOGS) && defined(OS_POSIX) && !defined(OS_MACOSX) |
#include "chrome/browser/ui/webui/certificate_viewer_ui.h" |
#endif |
+#if defined(WEBUI_DIALOGS) |
+#include "chrome/browser/ui/webui/hung_renderer_dialog_ui.h" |
+#endif |
+ |
namespace { |
// A function for creating a new WebUI. The caller owns the return value, which |
@@ -148,13 +151,15 @@ |
return &NewWebUI<BookmarksUI>; |
if (url.host() == chrome::kChromeUIBugReportHost) |
return &NewWebUI<BugReportUI>; |
-#if defined(OS_POSIX) && !defined(OS_MACOSX) |
+#if defined(WEBUI_DIALOGS) && defined(OS_POSIX) && !defined(OS_MACOSX) |
if (url.host() == chrome::kChromeUICertificateViewerHost) |
return &NewWebUI<CertificateViewerUI>; |
#endif |
+#if defined(WEBUI_DIALOGS) |
if (url.host() == chrome::kChromeUIHungRendererDialogHost) { |
return &NewWebUI<HungRendererDialogUI>; |
} |
+#endif |
if (url.host() == chrome::kChromeUICrashesHost) |
return &NewWebUI<CrashesUI>; |
if (url.host() == chrome::kChromeUIDevToolsHost) |