Reland of Deduplicate Monochrome locale .paks

Desktop / Chromium - zpeng [chromium.org] - 17 July 2017 14:47 EDT

Instead of using system webview's resource whitelist, now uses a generated list of resource IDs that are actually packed into Webview's locale paks. This fixes the missing strings issue.

Original issue: https://codereview.chromium.org/2980773002/

TBR=agrieve@chromium.org,dpranke@chromium.org,thestig@chromium.org,sadrul@chromium.org # Not skipping CQ checks because original CL landed more than 1 days ago. BUG=724110, 742388

Review-Url: https://codereview.chromium.org/2977993002 Cr-Commit-Position: refs/heads/master@{#487176}

368afac8 Reland of Deduplicate Monochrome locale .paks
chrome/android/BUILD.gn | 82 ++++++++++++++++++++--
chrome/app/chrome_main_delegate.cc | 10 +++
chrome/browser/chrome_browser_main_android.cc | 4 ++
chrome/browser/chrome_content_browser_client.cc | 6 ++
chrome/chrome_paks.gni | 40 +++++------
chrome/common/descriptors_android.h | 1 +
tools/grit/pak_util.py | 14 ++++
tools/resources/OWNERS | 2 +
tools/resources/filter_resource_whitelist.py | 50 +++++++++++++
ui/base/resource/resource_bundle.cc | 50 ++++++++++---
ui/base/resource/resource_bundle.h | 6 ++
ui/base/resource/resource_bundle_android.cc | 93 ++++++++++++++++++-------
ui/base/resource/resource_bundle_android.h | 7 ++
13 files changed, 307 insertions(+), 58 deletions(-)

Upstream: git.chromium.org


  • Share