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

Issue 2615753004: Android: Stop including unsupport locales in resources.arsc (Closed)

Created:
3 years, 11 months ago by agrieve
Modified:
3 years, 11 months ago
Reviewers:
michaelbai, bshe
CC:
chromium-reviews, mikecase+watch_chromium.org, agrieve+watch_chromium.org, jbudorick+watch_chromium.org, vmpstr+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Android: Stop including unsupport locales in resources.arsc They were being pulled in from dependent libraries. We now pass an explicit whitelist to aapt to ensure only support locales are being included. This shaves 470kb off of ChromePublic.apk, 100kb of which was recently added by the gvr library in bug 678309. The list of removed configs (via aapt dump configurations): af az az-rAZ be-rBY bn bn-rBD bs-rBA en-rAU en-rIN es-r419 et et-rEE eu-rES fr-rCA gl gl-rES gu gu-rIN hy-rAM is is-rIS ka ka-rGE kk kk-rKZ km km-rKH kn kn-rIN ky ky-rKG lo lo-rLA mk-rMK ml ml-rIN mn mn-rMN mr mr-rIN ms ms-rMY my my-rMM ne ne-rNP no pa pa-rIN si-rLK sq-rAL ta-rIN te te-rIN tl ur-rPK uz uz-rUZ zh-rHK zu BUG=678628, 678309 Review-Url: https://codereview.chromium.org/2615753004 Cr-Commit-Position: refs/heads/master@{#442907} Committed: https://chromium.googlesource.com/chromium/src/+/87f1b6b8f0e0493ba7d1540abe795e13b313e141

Patch Set 1 #

Patch Set 2 : always keep non-regional language configs #

Total comments: 1

Patch Set 3 : Make monochrome include all locales #

Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -1 line) Patch
M android_webview/system_webview_apk_tmpl.gni View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M base/android/java/src/org/chromium/base/LocaleUtils.java View 1 chunk +2 lines, -0 lines 0 comments Download
M build/android/gyp/package_resources.py View 1 4 chunks +43 lines, -1 line 0 comments Download
M build/config/android/internal_rules.gni View 3 chunks +5 lines, -0 lines 0 comments Download
M build/config/android/rules.gni View 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/android/chrome_public_apk_tmpl.gni View 1 2 3 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (15 generated)
agrieve
On 2017/01/05 16:56:24, commit-bot: I haz the power wrote: > Dry run: This issue passed ...
3 years, 11 months ago (2017-01-05 18:29:50 UTC) #7
agrieve
On 2017/01/05 18:29:50, agrieve wrote: > On 2017/01/05 16:56:24, commit-bot: I haz the power wrote: ...
3 years, 11 months ago (2017-01-05 20:31:29 UTC) #9
bshe
On 2017/01/05 20:31:29, agrieve wrote: > On 2017/01/05 18:29:50, agrieve wrote: > > On 2017/01/05 ...
3 years, 11 months ago (2017-01-05 20:56:07 UTC) #10
michaelbai
https://codereview.chromium.org/2615753004/diff/20001/chrome/android/chrome_public_apk_tmpl.gni File chrome/android/chrome_public_apk_tmpl.gni (right): https://codereview.chromium.org/2615753004/diff/20001/chrome/android/chrome_public_apk_tmpl.gni#newcode45 chrome/android/chrome_public_apk_tmpl.gni:45: aapt_locale_whitelist = locales - android_chrome_omitted_locales Did this remove the ...
3 years, 11 months ago (2017-01-05 22:41:40 UTC) #11
agrieve
On 2017/01/05 22:41:40, michaelbai wrote: > https://codereview.chromium.org/2615753004/diff/20001/chrome/android/chrome_public_apk_tmpl.gni > File chrome/android/chrome_public_apk_tmpl.gni (right): > > https://codereview.chromium.org/2615753004/diff/20001/chrome/android/chrome_public_apk_tmpl.gni#newcode45 > ...
3 years, 11 months ago (2017-01-06 01:51:30 UTC) #12
michaelbai
LGTM
3 years, 11 months ago (2017-01-11 01:08:10 UTC) #13
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/2615753004/40001
3 years, 11 months ago (2017-01-11 15:08:56 UTC) #20
commit-bot: I haz the power
3 years, 11 months ago (2017-01-11 15:15:26 UTC) #23
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/87f1b6b8f0e0493ba7d1540abe79...

Powered by Google App Engine
This is Rietveld 408576698