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

Issue 2371843002: Reland of Move language pak files to assets. (Closed)

Created:
4 years, 2 months ago by agrieve
Modified:
4 years, 2 months ago
CC:
chromium-reviews, jbudorick+watch_chromium.org, mikecase+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reland of Move language pak files to assets. Reverted by: https://codereview.chromium.org/2369683002/ Reason for reland: I've reworked it so that: 1. The list of pak files to extract are not set on start-up, but rather lazy initialized 2. This is done by putting the list of locale assets right in base's BuildConfig.java 3. Downstream parts have been upstreams so that this won't require a 2-sided patch Language pak files were moved to res/raw when split apks was being implemented. Moving them to assets with a java constant keeping track of pak file locations will improve lookup time and save some space (no more xml files and resources.arsc). Other notables: - .pak filenames no longer mangled. No more .lpak. no more hyphens to _s - Ensures that monochrome doesn't extract files by extracting only when files are compressed. BUG=529604 Committed: https://crrev.com/67101cd0338a409d80689b9c9c875c95ccde7957 Cr-Commit-Position: refs/heads/master@{#422836}

Patch Set 1 #

Patch Set 2 : reworked to not require initialization #

Patch Set 3 : rebase #

Patch Set 4 : Fix bad rebase #

Patch Set 5 : Add locale_pak_assets to android_test_apk #

Total comments: 2

Patch Set 6 : en_ -> en- in resource_sizes.py #

Total comments: 18

Patch Set 7 : nyquist & tedchoc comments #

Patch Set 8 : rebase #

Patch Set 9 : Fix ContentShell context setPrivateDataPrefix that was breaking tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+141 lines, -443 lines) Patch
M android_webview/BUILD.gn View 1 2 3 4 5 6 3 chunks +3 lines, -2 lines 0 comments Download
M android_webview/glue/java/src/com/android/webview/chromium/WebViewChromiumFactoryProvider.java View 1 2 3 4 5 6 3 chunks +0 lines, -3 lines 0 comments Download
M android_webview/system_webview_apk_tmpl.gni View 1 1 chunk +0 lines, -1 line 0 comments Download
M android_webview/test/BUILD.gn View 1 2 3 4 2 chunks +1 line, -2 lines 0 comments Download
M android_webview/test/shell/src/org/chromium/android_webview/shell/AwShellApplication.java View 1 2 chunks +0 lines, -12 lines 0 comments Download
M base/android/java/src/org/chromium/base/LocaleUtils.java View 1 2 3 4 5 6 3 chunks +17 lines, -9 lines 0 comments Download
M base/android/java/src/org/chromium/base/ResourceExtractor.java View 1 2 3 4 5 6 9 chunks +32 lines, -42 lines 0 comments Download
M base/android/java/templates/BuildConfig.template View 1 1 chunk +15 lines, -0 lines 0 comments Download
M blimp/client/app/android/java/src/org/chromium/blimp/BlimpApplication.java View 1 2 3 4 5 6 2 chunks +0 lines, -2 lines 0 comments Download
M blimp/client/app/android/java/src/org/chromium/blimp/BlimpLibraryLoader.java View 1 2 3 4 5 6 2 chunks +1 line, -2 lines 0 comments Download
D build/android/gyp/locale_pak_resources.py View 1 chunk +0 lines, -126 lines 0 comments Download
M build/android/gyp/write_build_config.py View 1 6 chunks +12 lines, -22 lines 0 comments Download
M build/android/resource_sizes.py View 1 2 3 4 5 2 chunks +21 lines, -12 lines 0 comments Download
M build/config/android/internal_rules.gni View 1 2 1 chunk +0 lines, -7 lines 0 comments Download
M build/config/android/rules.gni View 1 2 3 4 5 6 6 chunks +9 lines, -73 lines 0 comments Download
M chrome/android/BUILD.gn View 1 2 3 4 5 6 7 chunks +22 lines, -35 lines 0 comments Download
M chrome/android/chrome_public_apk_tmpl.gni View 1 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ChromeApplication.java View 1 2 3 4 5 6 7 3 chunks +0 lines, -11 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/init/ChromeBrowserInitializer.java View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M content/public/android/java/src/org/chromium/content/app/ContentApplication.java View 1 2 3 4 5 6 1 chunk +0 lines, -8 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/BrowserStartupController.java View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M content/shell/android/shell_apk/src/org/chromium/content_shell_apk/ContentShellApplication.java View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -4 lines 0 comments Download
M ui/android/java/src/org/chromium/ui/base/ResourceBundle.java View 1 2 chunks +5 lines, -65 lines 0 comments Download

Messages

Total messages: 36 (14 generated)
agrieve
Created Reland of Move language pak files to assets.
4 years, 2 months ago (2016-09-26 18:19:31 UTC) #1
michaelbai
agrieve@ I always upload the reverted patch as ps#1, and the fix as ps#2, so ...
4 years, 2 months ago (2016-09-26 18:32:13 UTC) #2
agrieve
On 2016/09/26 18:32:13, michaelbai wrote: > agrieve@ > > I always upload the reverted patch ...
4 years, 2 months ago (2016-09-26 20:30:33 UTC) #3
nyquist
Yeah, an update to this CL to point to where the changes are would be ...
4 years, 2 months ago (2016-09-26 20:45:01 UTC) #4
agrieve
On 2016/09/26 20:45:01, nyquist wrote: > Yeah, an update to this CL to point to ...
4 years, 2 months ago (2016-09-26 21:01:13 UTC) #5
agrieve
On 2016/09/26 21:01:13, agrieve wrote: > On 2016/09/26 20:45:01, nyquist wrote: > > Yeah, an ...
4 years, 2 months ago (2016-09-29 17:59:01 UTC) #9
estevenson
lgtm, much cleaner than my attempt :) https://codereview.chromium.org/2371843002/diff/330001/build/android/resource_sizes.py File build/android/resource_sizes.py (right): https://codereview.chromium.org/2371843002/diff/330001/build/android/resource_sizes.py#newcode193 build/android/resource_sizes.py:193: lambda f: ...
4 years, 2 months ago (2016-09-29 18:02:27 UTC) #10
agrieve
https://codereview.chromium.org/2371843002/diff/330001/build/android/resource_sizes.py File build/android/resource_sizes.py (right): https://codereview.chromium.org/2371843002/diff/330001/build/android/resource_sizes.py#newcode193 build/android/resource_sizes.py:193: lambda f: 'en_' in f), On 2016/09/29 18:02:27, estevenson ...
4 years, 2 months ago (2016-09-29 19:09:34 UTC) #11
michaelbai
https://codereview.chromium.org/2371843002/diff/350001/base/android/java/src/org/chromium/base/ResourceExtractor.java File base/android/java/src/org/chromium/base/ResourceExtractor.java (right): https://codereview.chromium.org/2371843002/diff/350001/base/android/java/src/org/chromium/base/ResourceExtractor.java#newcode184 base/android/java/src/org/chromium/base/ResourceExtractor.java:184: for (String pakFileName : BuildConfig.COMPRESSED_ASSETS) { Do we still ...
4 years, 2 months ago (2016-09-29 20:47:05 UTC) #12
agrieve
https://codereview.chromium.org/2371843002/diff/350001/base/android/java/src/org/chromium/base/ResourceExtractor.java File base/android/java/src/org/chromium/base/ResourceExtractor.java (right): https://codereview.chromium.org/2371843002/diff/350001/base/android/java/src/org/chromium/base/ResourceExtractor.java#newcode184 base/android/java/src/org/chromium/base/ResourceExtractor.java:184: for (String pakFileName : BuildConfig.COMPRESSED_ASSETS) { On 2016/09/29 20:47:05, ...
4 years, 2 months ago (2016-09-30 00:04:37 UTC) #13
michaelbai
lgtm https://codereview.chromium.org/2371843002/diff/350001/base/android/java/src/org/chromium/base/ResourceExtractor.java File base/android/java/src/org/chromium/base/ResourceExtractor.java (right): https://codereview.chromium.org/2371843002/diff/350001/base/android/java/src/org/chromium/base/ResourceExtractor.java#newcode184 base/android/java/src/org/chromium/base/ResourceExtractor.java:184: for (String pakFileName : BuildConfig.COMPRESSED_ASSETS) { On 2016/09/30 ...
4 years, 2 months ago (2016-09-30 00:10:39 UTC) #14
Ted C
lgtm https://codereview.chromium.org/2371843002/diff/350001/base/android/java/src/org/chromium/base/LocaleUtils.java File base/android/java/src/org/chromium/base/LocaleUtils.java (right): https://codereview.chromium.org/2371843002/diff/350001/base/android/java/src/org/chromium/base/LocaleUtils.java#newcode35 base/android/java/src/org/chromium/base/LocaleUtils.java:35: * Android deprecated languages codes into modern ones ...
4 years, 2 months ago (2016-09-30 17:03:16 UTC) #15
nyquist
lgtm https://codereview.chromium.org/2371843002/diff/350001/base/android/java/src/org/chromium/base/ResourceExtractor.java File base/android/java/src/org/chromium/base/ResourceExtractor.java (right): https://codereview.chromium.org/2371843002/diff/350001/base/android/java/src/org/chromium/base/ResourceExtractor.java#newcode171 base/android/java/src/org/chromium/base/ResourceExtractor.java:171: sInstance.mAssetsToExtract = detectFilesToExtract(); Nit: Could you add a ...
4 years, 2 months ago (2016-10-03 04:53:59 UTC) #16
agrieve
https://codereview.chromium.org/2371843002/diff/350001/base/android/java/src/org/chromium/base/LocaleUtils.java File base/android/java/src/org/chromium/base/LocaleUtils.java (right): https://codereview.chromium.org/2371843002/diff/350001/base/android/java/src/org/chromium/base/LocaleUtils.java#newcode35 base/android/java/src/org/chromium/base/LocaleUtils.java:35: * Android deprecated languages codes into modern ones used ...
4 years, 2 months ago (2016-10-03 20:10:17 UTC) #17
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/2371843002/370001
4 years, 2 months ago (2016-10-03 20:10:57 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/79382) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 2 months ago (2016-10-03 20:14:08 UTC) #22
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/2371843002/390001
4 years, 2 months ago (2016-10-04 14:06:49 UTC) #25
commit-bot: I haz the power
Exceeded global retry quota
4 years, 2 months ago (2016-10-04 15:30:37 UTC) #27
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/2371843002/390001
4 years, 2 months ago (2016-10-04 15:44:11 UTC) #29
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/2371843002/410001
4 years, 2 months ago (2016-10-04 16:19:45 UTC) #32
commit-bot: I haz the power
Committed patchset #9 (id:410001)
4 years, 2 months ago (2016-10-04 17:14:52 UTC) #34
commit-bot: I haz the power
4 years, 2 months ago (2016-10-04 17:21:57 UTC) #36
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/67101cd0338a409d80689b9c9c875c95ccde7957
Cr-Commit-Position: refs/heads/master@{#422836}

Powered by Google App Engine
This is Rietveld 408576698