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

Issue 2241383004: Reland of Enable whitelist generation for official builds. (Closed)

Created:
4 years, 4 months ago by estevenson
Modified:
4 years, 3 months ago
Reviewers:
Dirk Pranke, Nico, agrieve
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reland of Enable whitelist generation for official builds. Previous: https://codereview.chromium.org/2175413004/ Currently, all resources are included in PAK files when Chrome is built locally. Only official_buildbot.sh uses a resource whitelist. This CL enables local builds to use resource whitelisting by setting the enable_resource_whitelist_generation gn flag to true, or by building an official build. This will allow developers to more easily monitor the changes in APK size for each commit they make. However, a large amount of output is generated (_pragma is used to create warnings to allow whitelisted resources to be listed), so for now the whitelist will only be generated for official builds. This change results in a ~1.5 mb difference when calculating the APK size with resource_sizes.py. BUG=632385 Committed: https://crrev.com/e19e7089b508c4c6d6d9ea022068e2ee93a68490 Cr-Commit-Position: refs/heads/master@{#413584}

Patch Set 1 #

Total comments: 2

Patch Set 2 : rebase + change whitelist file output directory #

Unified diffs Side-by-side diffs Delta from patch set Stats (+308 lines, -178 lines) Patch
M build/toolchain/gcc_ar_wrapper.py View 3 chunks +10 lines, -15 lines 0 comments Download
A build/toolchain/gcc_compile_wrapper.py View 1 chunk +44 lines, -0 lines 0 comments Download
M build/toolchain/gcc_solink_wrapper.py View 5 chunks +16 lines, -21 lines 0 comments Download
M build/toolchain/gcc_toolchain.gni View 6 chunks +33 lines, -2 lines 0 comments Download
A build/toolchain/wrapper_utils.py View 1 chunk +105 lines, -0 lines 0 comments Download
M chrome/BUILD.gn View 1 4 chunks +41 lines, -0 lines 0 comments Download
M chrome/chrome_repack_locales.gni View 1 2 chunks +5 lines, -0 lines 0 comments Download
M tools/grit/grit/format/data_pack.py View 4 chunks +12 lines, -5 lines 0 comments Download
M tools/grit/grit/format/repack.py View 1 chunk +5 lines, -2 lines 0 comments Download
M tools/grit/grit_rule.gni View 1 chunk +6 lines, -2 lines 0 comments Download
M tools/grit/repack.gni View 2 chunks +6 lines, -10 lines 0 comments Download
D tools/resources/find_used_resources.py View 1 chunk +0 lines, -89 lines 0 comments Download
A + tools/resources/generate_resource_whitelist.py View 5 chunks +25 lines, -32 lines 0 comments Download

Messages

Total messages: 19 (9 generated)
estevenson
ptal, the only change here is that the output directory for the resource whitelist is ...
4 years, 4 months ago (2016-08-16 14:34:19 UTC) #4
Dirk Pranke
lgtm
4 years, 4 months ago (2016-08-16 16:17:29 UTC) #5
agrieve
lgtm with one nit https://codereview.chromium.org/2241383004/diff/1/chrome/chrome_repack_locales.gni File chrome/chrome_repack_locales.gni (right): https://codereview.chromium.org/2241383004/diff/1/chrome/chrome_repack_locales.gni#newcode123 chrome/chrome_repack_locales.gni:123: repack_whitelist = "$root_gen_dir/resource_whitelist.txt" I see ...
4 years, 4 months ago (2016-08-22 20:18:14 UTC) #6
estevenson
https://codereview.chromium.org/2241383004/diff/1/chrome/chrome_repack_locales.gni File chrome/chrome_repack_locales.gni (right): https://codereview.chromium.org/2241383004/diff/1/chrome/chrome_repack_locales.gni#newcode123 chrome/chrome_repack_locales.gni:123: repack_whitelist = "$root_gen_dir/resource_whitelist.txt" On 2016/08/22 20:18:14, agrieve (OOO until ...
4 years, 4 months ago (2016-08-22 20:50:55 UTC) #8
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/2241383004/20001
4 years, 4 months ago (2016-08-22 20:52:07 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 4 months ago (2016-08-22 23:40:15 UTC) #13
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/e19e7089b508c4c6d6d9ea022068e2ee93a68490 Cr-Commit-Position: refs/heads/master@{#413584}
4 years, 4 months ago (2016-08-22 23:43:11 UTC) #15
estevenson
A revert of this CL (patchset #2 id:20001) has been created in https://codereview.chromium.org/2266363002/ by estevenson@chromium.org. ...
4 years, 4 months ago (2016-08-23 02:14:26 UTC) #16
Nico
Do we really have to unconditionally pipe every single compile through an additional python process, ...
4 years, 3 months ago (2016-08-30 20:55:29 UTC) #18
estevenson
4 years, 3 months ago (2016-08-30 21:05:57 UTC) #19
Message was sent while issue was closed.
On 2016/08/30 20:55:29, Nico wrote:
> Do we really have to unconditionally pipe every single compile through an
> additional python process, even if the whitelist feature isn't on? This is
> pretty gross.

You're right, not at all necessary. I'll fix this: http://crbug.com/642498.

Powered by Google App Engine
This is Rietveld 408576698