0

[OOPIF PDF] Create feature and flag for PDF OOPIF

Add PDF feature "PdfOopif" and flag "pdf-oopif". The intended use is to
be able to switch between using a MimeHandlerViewGuest or an OOPIF to
launch the PDF Viewer.

Bug: 1445746
Change-Id: Ifeaf2bcc66ecf6ac112aa46d97b6237fcd7e4f34
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4666784
Commit-Queue: Andy Phan <andyphan@chromium.org>
Reviewed-by: K. Moon <kmoon@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1171407}
This commit is contained in:
Andy Phan
2023-07-17 21:58:10 +00:00
committed by Chromium LUCI CQ
parent 4eec02d0bc
commit eda2e1744f
7 changed files with 21 additions and 0 deletions

@ -17,6 +17,8 @@ BASE_FEATURE(kPdfIncrementalLoading,
"PdfIncrementalLoading",
base::FEATURE_DISABLED_BY_DEFAULT);
BASE_FEATURE(kPdfOopif, "PdfOopif", base::FEATURE_DISABLED_BY_DEFAULT);
// "Partial loading" refers to loading only specific parts of the PDF.
// TODO(crbug.com/1064175): Remove this once partial loading is fixed.
BASE_FEATURE(kPdfPartialLoading,

@ -15,6 +15,7 @@ namespace features {
BASE_DECLARE_FEATURE(kAccessiblePDFForm);
BASE_DECLARE_FEATURE(kPdfIncrementalLoading);
BASE_DECLARE_FEATURE(kPdfOopif);
BASE_DECLARE_FEATURE(kPdfPartialLoading);
BASE_DECLARE_FEATURE(kPdfPortfolio);
BASE_DECLARE_FEATURE(kPdfUseSkiaRenderer);