Guarantee DevTools and WebUI use Web Components V0.

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.

This patch keeps DevTools and WebUI use the V0 APIs regardless of the json5 runtime flag so that
web author tests their migration on
“chrome --disable-blink-features=ShadowDOMV0,CustomElementsV0,HTMLImports”
or chrome after M73 disabled the features default while using devtools.

Though DevTools is migrating to Shadow DOM V1 and Custom Element V1, we need
the "url.Protocol() == "chrome-devtools" condition to test WebUI or other components.
We can safely remove the condition when the migration finishes.

This patch doesn't fully cover WebUI but mostly does. I will investigate remaining issues
after this.

Bug: 911943
Change-Id: I1a47f3e49df6c62cec76656625208b63785b0a2d
Reviewed-on: https://chromium-review.googlesource.com/c/1362713
Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org>
Reviewed-by: Kent Tamura <tkent@chromium.org>
Commit-Queue: Yoichi Osato <yoichio@chromium.org>
Cr-Commit-Position: refs/heads/master@{#623131}
1 file changed