Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(257)

Unified Diff: chrome/browser/ui/apps/chrome_app_delegate.cc

Issue 2920013002: Use pdf compositor service for printing when OOPIF is enabled
Patch Set: rebase Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698