Commit c2cae7d5 authored by Yoichi Osato's avatar Yoichi Osato Committed by Commit Bot

Force enable V0 APIs for ZipArchiver extension.

This patch is a preparation for Shadow DOM V0, Custom Element V0 (CEv0) and HTML Imports removal.
Intent to Deprecate and Remove: http://bit.ly/2RGHe3x
Though we soon make these APIs only available for test by turning the json5 feature flag
from status: "stable" to status: "test", there is browser tests/chrome internal components
that use them.

ZipArchiver is a one of them and this patch reenable the APIs for it.
We should migration it using new APIs.

Bug: 766694
TEST: browser_tests --gtest_filter=*FilesAppBrowserTest*zipFile* on patch crrev.com/c/1481130
Change-Id: Ica140afb8c78b990af3fd7ecfd85ffffce8f4635
Reviewed-on: https://chromium-review.googlesource.com/c/1493986Reviewed-by: default avatarHayato Ito <hayato@chromium.org>
Reviewed-by: default avatarJochen Eisinger <jochen@chromium.org>
Commit-Queue: Yoichi Osato <yoichio@chromium.org>
Cr-Commit-Position: refs/heads/master@{#636568}
parent b0e9d505
......@@ -893,7 +893,9 @@ void Dispatcher::OnActivateExtension(const std::string& extension_id) {
// use the old web APIs.
// After completion of the migration, we should remove this.
// See crbug.com/924031 for detail.
if (extension_id == extension_misc::kPdfExtensionId) {
if (extension_id == extension_misc::kPdfExtensionId ||
// chrome/common/extensions/extension_constants.h::kZipArchiverExtensionId
extension_id == "dmboannefpncccogfdikhmhpmdnddgoe") {
blink::WebRuntimeFeatures::EnableShadowDOMV0(true);
blink::WebRuntimeFeatures::EnableCustomElementsV0(true);
blink::WebRuntimeFeatures::EnableHTMLImports(true);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment