fix: pdf viewer missing resources (#27499)
* fix: pdf viewer missing resources * test: add simple regression test * 2638992: PDF Viewer: Stop respecting the PDFViewerUpdate flag.2638992
* 2439433: PDF Viewer Update: Add aria-label for thumbnails2439433
This commit is contained in:
parent
e94f97f2c9
commit
bf6a50c538
5 changed files with 19 additions and 5 deletions
|
@ -18,6 +18,7 @@
|
|||
|
||||
#if BUILDFLAG(ENABLE_PDF_VIEWER)
|
||||
#include "chrome/browser/pdf/pdf_extension_util.h" // nogncheck
|
||||
#include "chrome/grit/pdf_resources_map.h"
|
||||
#include "extensions/common/constants.h"
|
||||
#endif
|
||||
|
||||
|
@ -28,6 +29,8 @@ ElectronComponentExtensionResourceManager::
|
|||
AddComponentResourceEntries(kComponentExtensionResources,
|
||||
kComponentExtensionResourcesSize);
|
||||
#if BUILDFLAG(ENABLE_PDF_VIEWER)
|
||||
AddComponentResourceEntries(kPdfResources, kPdfResourcesSize);
|
||||
|
||||
// Register strings for the PDF viewer, so that $i18n{} replacements work.
|
||||
base::Value pdf_strings(base::Value::Type::DICTIONARY);
|
||||
pdf_extension_util::AddStrings(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue