MD Extensions: Optimize with polymer-bundler

Desktop / Chromium - dpapad [chromium.org] - 10 October 2017 17:24 EDT

- Add all necessary GN setup.- Move two files reused by MD Extensions and old Extensions under md_extensions/ since it is easier to re-use from there.
- Make MD Extensions respect the optimize_webui GN config flag.

This reduces the FMP (first meeaningful paint, from about 800ms to 450ms on my workstation).

Bug: 764126 Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation Change-Id: Ia31a4790b7a349d65b67f07acafa249170207911 Reviewed-on: https://chromium-review.googlesource.com/699743

799677b MD Extensions: Optimize with polymer-bundler.
chrome/browser/browser_resources.grd | 2 -
chrome/browser/resources/BUILD.gn | 17 ++++-
.../resources/extensions/compiled_resources2.gyp | 21 +-----
.../resources/extensions/extension_command_list.js | 6 +-
chrome/browser/resources/extensions/extensions.js | 2 +-
chrome/browser/resources/md_extensions/BUILD.gn | 43 ++++++++++++
.../md_extensions/compiled_resources2.gyp | 23 +++++-
.../md_extensions/drag_and_drop_handler.html | 2 +-
.../drag_and_drop_handler.js | 8 +--
.../md_extensions/extensions_resources.grd | 6 ++
.../extensions_resources_vulcanized.grd | 19 +++++
.../resources/md_extensions/shortcut_util.html | 2 +-
.../{extensions => md_extensions}/shortcut_util.js | 82 +++++++++++++---------
.../browser/ui/webui/extensions/extensions_ui.cc | 13 ++--
tools/gritsettings/resource_ids | 5 +-
15 files changed, 173 insertions(+), 78 deletions(-)

Upstream: git.chromium.org


  • Share