fix: support new PDF viewer update (#26010)

This commit is contained in:
Shelley Vohr 2020-10-19 13:07:02 -07:00 committed by GitHub
parent 64504536fa
commit 88508d5166
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -63,6 +63,11 @@ void AddStringsForPdf(base::DictionaryValue* dict) {
void AddAdditionalDataForPdf(base::DictionaryValue* dict) { void AddAdditionalDataForPdf(base::DictionaryValue* dict) {
#if BUILDFLAG(ENABLE_PDF) #if BUILDFLAG(ENABLE_PDF)
dict->SetStringKey(
"pdfViewerUpdateEnabledAttribute",
base::FeatureList::IsEnabled(chrome_pdf::features::kPDFViewerUpdate)
? "pdf-viewer-update-enabled"
: "");
dict->SetKey("pdfFormSaveEnabled", dict->SetKey("pdfFormSaveEnabled",
base::Value(base::FeatureList::IsEnabled( base::Value(base::FeatureList::IsEnabled(
chrome_pdf::features::kSaveEditedPDFForm))); chrome_pdf::features::kSaveEditedPDFForm)));