build: fix build with enable_pdf_viewer=false (#25494)
This commit is contained in:
parent
993eab691f
commit
e0a25cb1e3
2 changed files with 7 additions and 4 deletions
|
@ -7,13 +7,14 @@
|
|||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
#include "electron/buildflags/buildflags.h"
|
||||
#include "extensions/browser/guest_view/mime_handler_view/mime_handler_view_guest_delegate.h"
|
||||
#include "printing/buildflags/buildflags.h"
|
||||
#include "shell/browser/extensions/api/management/electron_management_api_delegate.h"
|
||||
#include "shell/browser/extensions/electron_extension_web_contents_observer.h"
|
||||
#include "shell/browser/extensions/electron_messaging_delegate.h"
|
||||
|
||||
#if BUILDFLAG(ENABLE_PRINT_PREVIEW)
|
||||
#if BUILDFLAG(ENABLE_PDF_VIEWER)
|
||||
#include "components/pdf/browser/pdf_web_contents_helper.h"
|
||||
#include "shell/browser/electron_pdf_web_contents_helper_client.h"
|
||||
#endif
|
||||
|
@ -54,7 +55,7 @@ void ElectronExtensionsAPIClient::AttachWebContentsHelpers(
|
|||
extensions::ElectronExtensionWebContentsObserver::CreateForWebContents(
|
||||
web_contents);
|
||||
|
||||
#if BUILDFLAG(ENABLE_PRINT_PREVIEW)
|
||||
#if BUILDFLAG(ENABLE_PDF_VIEWER)
|
||||
pdf::PDFWebContentsHelper::CreateForWebContentsWithClient(
|
||||
web_contents, std::make_unique<ElectronPDFWebContentsHelperClient>());
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue