| Index: chrome/browser/ui/tab_helpers.cc
|
| diff --git a/chrome/browser/ui/tab_helpers.cc b/chrome/browser/ui/tab_helpers.cc
|
| index 3f4cea2c51db6be8705fb0993dd52ccce03a6a97..1abd80be42290fcd856f0782b5977a34a2041303 100644
|
| --- a/chrome/browser/ui/tab_helpers.cc
|
| +++ b/chrome/browser/ui/tab_helpers.cc
|
| @@ -124,13 +124,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
|
|
|
| using content::WebContents;
|
|
|
| @@ -298,13 +293,8 @@ offline_pages::RecentTabHelper::CreateForWebContents(web_contents);
|
| #endif
|
|
|
| #if BUILDFLAG(ENABLE_PRINTING) && !defined(OS_ANDROID)
|
| -#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) && !defined(OS_ANDROID)
|
| + printing::InitializePrinting(web_contents);
|
| +#endif
|
|
|
| bool enabled_distiller = base::CommandLine::ForCurrentProcess()->HasSwitch(
|
| switches::kEnableDomDistiller);
|
|
|