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

Unified Diff: headless/lib/browser/headless_web_contents_impl.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: headless/lib/browser/headless_web_contents_impl.cc
diff --git a/headless/lib/browser/headless_web_contents_impl.cc b/headless/lib/browser/headless_web_contents_impl.cc
index 82474bc2c48c18a69410eec9f6a06b3b257628a3..27e279182111084ace3928d82cbe752f0042d151 100644
--- a/headless/lib/browser/headless_web_contents_impl.cc
+++ b/headless/lib/browser/headless_web_contents_impl.cc
@@ -36,6 +36,7 @@
#include "printing/features/features.h"
#if BUILDFLAG(ENABLE_BASIC_PRINTING)
+#include "components/printing/browser/print_manager_utils.h"
#include "headless/lib/browser/headless_print_manager.h"
#endif
@@ -283,6 +284,8 @@ HeadlessWebContentsImpl::HeadlessWebContentsImpl(
weak_ptr_factory_(this) {
#if BUILDFLAG(ENABLE_BASIC_PRINTING) && !defined(CHROME_MULTIPLE_DLL_CHILD)
HeadlessPrintManager::CreateForWebContents(web_contents);
+ // TODO(weili): Add support for printing OOPIFs.
+ printing::SetOopifEnabled(false);
#endif
web_contents->GetMutableRendererPrefs()->accept_languages =
browser_context->options()->accept_language();

Powered by Google App Engine
This is Rietveld 408576698