Index: chrome/browser/ui/apps/chrome_app_delegate.cc |
diff --git a/chrome/browser/ui/apps/chrome_app_delegate.cc b/chrome/browser/ui/apps/chrome_app_delegate.cc |
index f18af9b352295804d749c43e9592f71f2e00f1e0..6fe6df813e3a90c64f664a15cea93d54818ce79c 100644 |
--- a/chrome/browser/ui/apps/chrome_app_delegate.cc |
+++ b/chrome/browser/ui/apps/chrome_app_delegate.cc |
@@ -52,13 +52,8 @@ |
#endif |
#if BUILDFLAG(ENABLE_PRINTING) |
-#if BUILDFLAG(ENABLE_PRINT_PREVIEW) |
-#include "chrome/browser/printing/print_preview_message_handler.h" |
-#include "chrome/browser/printing/print_view_manager.h" |
-#else |
-#include "chrome/browser/printing/print_view_manager_basic.h" |
-#endif // BUILDFLAG(ENABLE_PRINT_PREVIEW) |
-#endif // BUILDFLAG(ENABLE_PRINTING) |
+#include "chrome/browser/printing/printing_init.h" |
+#endif |
namespace { |
@@ -195,13 +190,8 @@ void ChromeAppDelegate::InitWebContents(content::WebContents* web_contents) { |
favicon::CreateContentFaviconDriverForWebContents(web_contents); |
#if BUILDFLAG(ENABLE_PRINTING) |
-#if BUILDFLAG(ENABLE_PRINT_PREVIEW) |
- printing::PrintViewManager::CreateForWebContents(web_contents); |
- printing::PrintPreviewMessageHandler::CreateForWebContents(web_contents); |
-#else |
- printing::PrintViewManagerBasic::CreateForWebContents(web_contents); |
-#endif // BUILDFLAG(ENABLE_PRINT_PREVIEW) |
-#endif // BUILDFLAG(ENABLE_PRINTING) |
+ printing::InitializePrinting(web_contents); |
+#endif |
extensions::ChromeExtensionWebContentsObserver::CreateForWebContents( |
web_contents); |