Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(164)

Issue 2933343002: Deduplicate Monochrome locale .paks (Closed)

Created:
3 years, 6 months ago by F
Modified:
3 years, 5 months ago
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Deduplicate Monochrome locale .paks This CL removes WebView strings from Chrome locale .paks in Monochrome using a generated resource whitelist. While WebView's locale resource logic remains the same, Chrome in Monochrome now loads a secondary locale pack file as a fallback when a string cannot be found in the primary locale pack file. This CL reduces binary size by over 400KB. BUG=724110 Review-Url: https://codereview.chromium.org/2933343002 Cr-Commit-Position: refs/heads/master@{#485635} Committed: https://chromium.googlesource.com/chromium/src/+/08ba6b7c7e7edb3f7c8851eb7ddc1d2ea64497e6

Patch Set 1 #

Total comments: 28

Patch Set 2 : Addressing comments #

Total comments: 4

Patch Set 3 : Addressing comments #

Total comments: 14

Patch Set 4 : Addressing comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+259 lines, -57 lines) Patch
M chrome/android/BUILD.gn View 1 2 3 4 chunks +48 lines, -4 lines 0 comments Download
M chrome/app/chrome_main_delegate.cc View 1 2 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/browser/chrome_browser_main_android.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/chrome_paks.gni View 3 chunks +20 lines, -20 lines 0 comments Download
M chrome/common/descriptors_android.h View 1 chunk +1 line, -0 lines 0 comments Download
M tools/resources/OWNERS View 1 1 chunk +2 lines, -0 lines 0 comments Download
A tools/resources/filter_resource_whitelist.py View 1 2 1 chunk +50 lines, -0 lines 0 comments Download
M ui/base/resource/resource_bundle.h View 2 chunks +6 lines, -0 lines 0 comments Download
M ui/base/resource/resource_bundle.cc View 1 2 3 5 chunks +36 lines, -9 lines 0 comments Download
M ui/base/resource/resource_bundle_android.h View 1 chunk +7 lines, -0 lines 0 comments Download
M ui/base/resource/resource_bundle_android.cc View 1 2 3 6 chunks +69 lines, -24 lines 0 comments Download

Messages

Total messages: 61 (45 generated)
F
Hi Andrew, PTAL. Thanks!
3 years, 5 months ago (2017-06-28 22:37:52 UTC) #18
agrieve
Some nits, but overall looks awesome! lgtm! https://codereview.chromium.org/2933343002/diff/80001/chrome/android/BUILD.gn File chrome/android/BUILD.gn (right): https://codereview.chromium.org/2933343002/diff/80001/chrome/android/BUILD.gn#newcode731 chrome/android/BUILD.gn:731: assert(is_android, nit: ...
3 years, 5 months ago (2017-06-29 01:09:54 UTC) #19
agrieve
https://codereview.chromium.org/2933343002/diff/80001/tools/resources/filter_resource_whitelist.py File tools/resources/filter_resource_whitelist.py (right): https://codereview.chromium.org/2933343002/diff/80001/tools/resources/filter_resource_whitelist.py#newcode1 tools/resources/filter_resource_whitelist.py:1: #!/usr/bin/env python Also: Add yourself (and me) to the ...
3 years, 5 months ago (2017-06-29 01:29:26 UTC) #20
F
Thanks Andrew! PTAL Hi Dirk, Lei, and Sadrul, PTAL. Thanks! https://codereview.chromium.org/2933343002/diff/80001/chrome/android/BUILD.gn File chrome/android/BUILD.gn (right): https://codereview.chromium.org/2933343002/diff/80001/chrome/android/BUILD.gn#newcode731 ...
3 years, 5 months ago (2017-06-29 18:31:21 UTC) #24
Lei Zhang
On 2017/06/29 18:31:21, F wrote: > Thanks Andrew! PTAL > > Hi Dirk, Lei, and ...
3 years, 5 months ago (2017-06-29 18:44:09 UTC) #29
F
Dirk: PTAL for /tools. Thanks! Lei: PTAL for /chrome. Thanks! Sadrul: PTAL for /ui. Thanks!
3 years, 5 months ago (2017-06-29 18:47:08 UTC) #30
agrieve
On 2017/06/29 18:47:08, F wrote: > Dirk: PTAL for /tools. Thanks! > Lei: PTAL for ...
3 years, 5 months ago (2017-06-29 19:00:41 UTC) #31
Lei Zhang
lgtm https://codereview.chromium.org/2933343002/diff/120001/chrome/app/chrome_main_delegate.cc File chrome/app/chrome_main_delegate.cc (right): https://codereview.chromium.org/2933343002/diff/120001/chrome/app/chrome_main_delegate.cc#newcode891 chrome/app/chrome_main_delegate.cc:891: // Load secondary locale .pak file if it ...
3 years, 5 months ago (2017-06-29 19:08:31 UTC) #32
F
Thanks Lei! PTAL https://codereview.chromium.org/2933343002/diff/120001/chrome/app/chrome_main_delegate.cc File chrome/app/chrome_main_delegate.cc (right): https://codereview.chromium.org/2933343002/diff/120001/chrome/app/chrome_main_delegate.cc#newcode891 chrome/app/chrome_main_delegate.cc:891: // Load secondary locale .pak file ...
3 years, 5 months ago (2017-06-29 19:20:03 UTC) #35
Dirk Pranke
rs- lgtm.
3 years, 5 months ago (2017-06-29 20:23:17 UTC) #36
sadrul
https://codereview.chromium.org/2933343002/diff/160001/ui/base/resource/resource_bundle.cc File ui/base/resource/resource_bundle.cc (right): https://codereview.chromium.org/2933343002/diff/160001/ui/base/resource/resource_bundle.cc#newcode254 ui/base/resource/resource_bundle.cc:254: std::unique_ptr<DataPack> data_pack(new DataPack(SCALE_FACTOR_100P)); auto data_pack = base::MakeUnique... https://codereview.chromium.org/2933343002/diff/160001/ui/base/resource/resource_bundle.cc#newcode259 ui/base/resource/resource_bundle.cc:259: ...
3 years, 5 months ago (2017-07-04 17:01:15 UTC) #44
F
Thanks Sadrul! PTAL https://codereview.chromium.org/2933343002/diff/160001/ui/base/resource/resource_bundle.cc File ui/base/resource/resource_bundle.cc (right): https://codereview.chromium.org/2933343002/diff/160001/ui/base/resource/resource_bundle.cc#newcode254 ui/base/resource/resource_bundle.cc:254: std::unique_ptr<DataPack> data_pack(new DataPack(SCALE_FACTOR_100P)); On 2017/07/04 17:01:15, ...
3 years, 5 months ago (2017-07-10 18:56:35 UTC) #47
sadrul
lgtm
3 years, 5 months ago (2017-07-10 21:49:06 UTC) #52
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2933343002/180001
3 years, 5 months ago (2017-07-11 15:28:33 UTC) #57
commit-bot: I haz the power
Committed patchset #4 (id:180001) as https://chromium.googlesource.com/chromium/src/+/08ba6b7c7e7edb3f7c8851eb7ddc1d2ea64497e6
3 years, 5 months ago (2017-07-11 15:35:25 UTC) #60
F
3 years, 5 months ago (2017-07-12 21:12:21 UTC) #61
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:180001) has been created in
https://codereview.chromium.org/2980773002/ by zpeng@chromium.org.

The reason for reverting is: Chrome is now missing 5 locale strings. The reason
is that these strings are believed to be in WebView locales because they're
whitelisted, but since WebView uses multiple whitelists to pack its locale
strings, these strings are actually not contained by WebView.

Powered by Google App Engine
This is Rietveld 408576698