mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: support new PDF viewer update (#26010)
This commit is contained in:
@@ -63,6 +63,11 @@ void AddStringsForPdf(base::DictionaryValue* dict) {
|
||||
|
||||
void AddAdditionalDataForPdf(base::DictionaryValue* dict) {
|
||||
#if BUILDFLAG(ENABLE_PDF)
|
||||
dict->SetStringKey(
|
||||
"pdfViewerUpdateEnabledAttribute",
|
||||
base::FeatureList::IsEnabled(chrome_pdf::features::kPDFViewerUpdate)
|
||||
? "pdf-viewer-update-enabled"
|
||||
: "");
|
||||
dict->SetKey("pdfFormSaveEnabled",
|
||||
base::Value(base::FeatureList::IsEnabled(
|
||||
chrome_pdf::features::kSaveEditedPDFForm)));
|
||||
|
||||
Reference in New Issue
Block a user