| 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 720cec892c2744522d9a28ce232d6f7e3e5bdbaa..a967c3c0f9bbd69a55b133e0ef6b1af9ea8f412c 100644
|
| --- a/headless/lib/browser/headless_web_contents_impl.cc
|
| +++ b/headless/lib/browser/headless_web_contents_impl.cc
|
| @@ -31,9 +31,13 @@
|
| #include "headless/lib/browser/headless_browser_impl.h"
|
| #include "headless/lib/browser/headless_browser_main_parts.h"
|
| #include "headless/lib/browser/headless_devtools_client_impl.h"
|
| -#include "headless/lib/browser/headless_print_manager.h"
|
| +#include "printing/features/features.h"
|
| #include "services/service_manager/public/cpp/interface_registry.h"
|
|
|
| +#if BUILDFLAG(ENABLE_BASIC_PRINTING)
|
| +#include "headless/lib/browser/headless_print_manager.h"
|
| +#endif
|
| +
|
| namespace headless {
|
|
|
| // static
|
| @@ -174,7 +178,9 @@ HeadlessWebContentsImpl::HeadlessWebContentsImpl(
|
| agent_host_(content::DevToolsAgentHost::GetOrCreateFor(web_contents)),
|
| browser_context_(browser_context),
|
| render_process_host_(web_contents->GetRenderProcessHost()) {
|
| +#if BUILDFLAG(ENABLE_BASIC_PRINTING)
|
| printing::HeadlessPrintManager::CreateForWebContents(web_contents);
|
| +#endif
|
| web_contents_->SetDelegate(web_contents_delegate_.get());
|
| render_process_host_->AddObserver(this);
|
| }
|
|
|