build: fix with enable_pdf_viewer = false
(#39990)
build: fix with enable_pdf_viewer = false
This commit is contained in:
parent
1ba321b733
commit
b7c9c895b5
1 changed files with 4 additions and 4 deletions
|
@ -13,15 +13,15 @@
|
||||||
#include "chrome/grit/generated_resources.h"
|
#include "chrome/grit/generated_resources.h"
|
||||||
#include "components/strings/grit/components_strings.h"
|
#include "components/strings/grit/components_strings.h"
|
||||||
#include "components/zoom/page_zoom_constants.h"
|
#include "components/zoom/page_zoom_constants.h"
|
||||||
#include "pdf/buildflags.h"
|
#include "electron/buildflags/buildflags.h"
|
||||||
#include "printing/buildflags/buildflags.h"
|
#include "printing/buildflags/buildflags.h"
|
||||||
#include "ui/base/l10n/l10n_util.h"
|
#include "ui/base/l10n/l10n_util.h"
|
||||||
#include "ui/base/webui/web_ui_util.h"
|
#include "ui/base/webui/web_ui_util.h"
|
||||||
|
|
||||||
#if BUILDFLAG(ENABLE_PDF)
|
#if BUILDFLAG(ENABLE_PDF_VIEWER)
|
||||||
#include "chrome/browser/pdf/pdf_extension_util.h"
|
#include "chrome/browser/pdf/pdf_extension_util.h"
|
||||||
#include "pdf/pdf_features.h"
|
#include "pdf/pdf_features.h"
|
||||||
#endif // BUILDFLAG(ENABLE_PDF)
|
#endif // BUILDFLAG(ENABLE_PDF_VIEWER)
|
||||||
|
|
||||||
// To add a new component to this API, simply:
|
// To add a new component to this API, simply:
|
||||||
// 1. Add your component to the Component enum in
|
// 1. Add your component to the Component enum in
|
||||||
|
@ -48,7 +48,7 @@ ExtensionFunction::ResponseAction ResourcesPrivateGetStringsFunction::Run() {
|
||||||
|
|
||||||
switch (component) {
|
switch (component) {
|
||||||
case api::resources_private::COMPONENT_PDF:
|
case api::resources_private::COMPONENT_PDF:
|
||||||
#if BUILDFLAG(ENABLE_PDF)
|
#if BUILDFLAG(ENABLE_PDF_VIEWER)
|
||||||
pdf_extension_util::AddStrings(
|
pdf_extension_util::AddStrings(
|
||||||
pdf_extension_util::PdfViewerContext::kPdfViewer, &dict);
|
pdf_extension_util::PdfViewerContext::kPdfViewer, &dict);
|
||||||
pdf_extension_util::AddAdditionalData(true, false, &dict);
|
pdf_extension_util::AddAdditionalData(true, false, &dict);
|
||||||
|
|
Loading…
Reference in a new issue