Index: chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc |
diff --git a/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc b/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc |
index 560c344c5b7e5b6c37b8b0460eefa4bed2f66cd9..c9ea885c8edbf54a89a733413b066f38c16078eb 100644 |
--- a/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc |
+++ b/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc |
@@ -42,7 +42,6 @@ |
#include "chrome/browser/ui/webui/performance_monitor/performance_monitor_ui.h" |
#include "chrome/browser/ui/webui/plugins_ui.h" |
#include "chrome/browser/ui/webui/predictors/predictors_ui.h" |
-#include "chrome/browser/ui/webui/print_preview/print_preview_ui.h" |
#include "chrome/browser/ui/webui/profiler_ui.h" |
#include "chrome/browser/ui/webui/quota_internals/quota_internals_ui.h" |
#include "chrome/browser/ui/webui/signin/profile_signin_confirmation_ui.h" |
@@ -78,6 +77,10 @@ |
#include "chrome/browser/ui/webui/media/webrtc_logs_ui.h" |
#endif |
+#if defined(ENABLE_FULL_PRINTING) |
+#include "chrome/browser/ui/webui/print_preview/print_preview_ui.h" |
+#endif |
+ |
#if defined(OS_ANDROID) |
#include "chrome/browser/ui/webui/welcome_ui_android.h" |
#else |
@@ -434,7 +437,7 @@ WebUIFactoryFunction GetWebUIFactoryFunction(WebUI* web_ui, |
if (url.host() == chrome::kChromeUIExtensionsFrameHost) |
return &NewWebUI<extensions::ExtensionsUI>; |
#endif |
-#if defined(ENABLE_PRINTING) |
+#if defined(ENABLE_FULL_PRINTING) |
if (url.host() == chrome::kChromeUIPrintHost && |
!profile->GetPrefs()->GetBoolean(prefs::kPrintPreviewDisabled)) |
return &NewWebUI<PrintPreviewUI>; |