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

Issue 2345143002: Move language pak files to assets. (Closed)

Created:
4 years, 3 months ago by estevenson
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

Move language pak files to assets. 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). BUG=529604 Committed: https://crrev.com/34ae27889dd8c8ffd5f5ca8c7bc10c17e57c12e2 Cr-Commit-Position: refs/heads/master@{#420641}

Patch Set 1 #

Patch Set 2 : Move language pak files back to assets rather than res. #

Patch Set 3 : Move language pak files back to assets rather than res. #

Patch Set 4 : Make output java file configurable #

Patch Set 5 : Fix file paths + disable compression for android_webview #

Patch Set 6 : Move language pak files back to assets rather than res. #

Total comments: 8

Patch Set 7 : rebase + agrieve's comments #

Patch Set 8 : Added srcjar_deps for chrome_apk targets #

Total comments: 9

Patch Set 9 : always use org.chromium.ui as package #

Total comments: 1

Patch Set 10 : update rules.gni doc + srcjar_deps for system_webview_apk_tmpl.gni #

Patch Set 11 : Fix error where LocalePakFiles.java doesn't exist in test #

Patch Set 12 : Move pak file initialization to ProcessInitializationHandler #

Patch Set 13 : Move resource initialization back to ChromeApplication #

Unified diffs Side-by-side diffs Delta from patch set Stats (+231 lines, -312 lines) Patch
M android_webview/BUILD.gn View 1 2 3 4 5 6 7 8 3 chunks +3 lines, -2 lines 0 comments Download
M android_webview/glue/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +8 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 7 8 9 10 11 3 chunks +2 lines, -2 lines 0 comments Download
M android_webview/system_webview_apk_tmpl.gni View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M android_webview/test/BUILD.gn View 1 2 3 4 5 6 2 chunks +3 lines, -0 lines 0 comments Download
M android_webview/test/shell/src/org/chromium/android_webview/shell/AwShellApplication.java View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -2 lines 0 comments Download
M base/android/java/src/org/chromium/base/LocaleUtils.java View 1 2 3 4 5 6 2 chunks +12 lines, -2 lines 0 comments Download
M base/android/java/src/org/chromium/base/ResourceExtractor.java View 1 2 3 4 5 6 7 8 3 chunks +6 lines, -22 lines 0 comments Download
M blimp/client/app/android/java/src/org/chromium/blimp/BlimpApplication.java View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
A build/android/gyp/locale_pak_assets.py View 1 2 3 4 5 6 7 8 9 10 1 chunk +104 lines, -0 lines 0 comments Download
M build/android/gyp/locale_pak_resources.py View 1 2 1 chunk +0 lines, -126 lines 0 comments Download
M build/android/gyp/write_build_config.py View 1 2 3 4 5 6 4 chunks +0 lines, -21 lines 0 comments Download
M build/config/android/internal_rules.gni View 1 2 3 4 5 6 1 chunk +0 lines, -7 lines 0 comments Download
M build/config/android/rules.gni View 1 2 3 4 5 6 7 8 9 5 chunks +59 lines, -73 lines 0 comments Download
M chrome/android/BUILD.gn View 1 2 3 4 5 6 7 8 9 4 chunks +7 lines, -3 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ChromeApplication.java View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +2 lines, -4 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 12 1 chunk +1 line, -0 lines 0 comments Download
M ui/android/java/src/org/chromium/ui/base/ResourceBundle.java View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +19 lines, -45 lines 0 comments Download

Messages

Total messages: 72 (53 generated)
estevenson
ptal Andrew!
4 years, 3 months ago (2016-09-20 23:51:16 UTC) #26
agrieve
Sorry to ask for big changes after having already looked at it offline. Reading through ...
4 years, 3 months ago (2016-09-21 01:06:42 UTC) #28
estevenson
ptal Andrew! https://codereview.chromium.org/2345143002/diff/100001/base/android/java/src/org/chromium/base/ResourceExtractor.java File base/android/java/src/org/chromium/base/ResourceExtractor.java (right): https://codereview.chromium.org/2345143002/diff/100001/base/android/java/src/org/chromium/base/ResourceExtractor.java#newcode46 base/android/java/src/org/chromium/base/ResourceExtractor.java:46: public final String pathWithinApk; On 2016/09/21 01:06:41, ...
4 years, 3 months ago (2016-09-21 19:50:56 UTC) #33
agrieve
lgtm. +michaelbai to keep him in the loop about how locales in monochrome are changing. ...
4 years, 3 months ago (2016-09-21 20:34:02 UTC) #37
michaelbai
Is there downstream patch corresponding to this?
4 years, 3 months ago (2016-09-21 20:44:23 UTC) #38
estevenson
On 2016/09/21 20:44:23, michaelbai wrote: > Is there downstream patch corresponding to this? Yep, just ...
4 years, 3 months ago (2016-09-21 20:46:10 UTC) #39
michaelbai
https://codereview.chromium.org/2345143002/diff/140001/android_webview/glue/BUILD.gn File android_webview/glue/BUILD.gn (right): https://codereview.chromium.org/2345143002/diff/140001/android_webview/glue/BUILD.gn#newcode46 android_webview/glue/BUILD.gn:46: "//android_webview:locale_pak_srcjar", On 2016/09/21 20:34:01, agrieve wrote: > Monochrome depends ...
4 years, 3 months ago (2016-09-21 22:14:33 UTC) #40
estevenson
https://codereview.chromium.org/2345143002/diff/140001/android_webview/glue/BUILD.gn File android_webview/glue/BUILD.gn (right): https://codereview.chromium.org/2345143002/diff/140001/android_webview/glue/BUILD.gn#newcode46 android_webview/glue/BUILD.gn:46: "//android_webview:locale_pak_srcjar", On 2016/09/21 22:14:33, michaelbai wrote: > On 2016/09/21 ...
4 years, 3 months ago (2016-09-21 22:35:18 UTC) #43
estevenson
thakis@chromium.org: Please review changes in ResourceBundle.java nyquist@chromium.org: Please review changes in ChromeApplication.java, BlimpApplication.java
4 years, 3 months ago (2016-09-21 22:47:05 UTC) #45
michaelbai
https://codereview.chromium.org/2345143002/diff/160001/android_webview/glue/BUILD.gn File android_webview/glue/BUILD.gn (right): https://codereview.chromium.org/2345143002/diff/160001/android_webview/glue/BUILD.gn#newcode46 android_webview/glue/BUILD.gn:46: "//android_webview:locale_pak_srcjar", Should this move to system_webview_apk_tmpl.gni?
4 years, 3 months ago (2016-09-21 23:51:57 UTC) #48
Nico
On 2016/09/21 22:47:05, estevenson wrote: > mailto:thakis@chromium.org: Please review changes in ResourceBundle.java Please get ui/android/OWNERS ...
4 years, 2 months ago (2016-09-22 17:11:53 UTC) #53
michaelbai
lgtm
4 years, 2 months ago (2016-09-22 18:17:24 UTC) #54
estevenson
tedchoc@chromium.org: Please review changes in ChromeApplication.java and ResourceBundle.java
4 years, 2 months ago (2016-09-23 00:18:18 UTC) #62
Ted C
On 2016/09/23 00:18:18, estevenson wrote: > mailto:tedchoc@chromium.org: Please review changes in ChromeApplication.java and > ResourceBundle.java ...
4 years, 2 months ago (2016-09-23 00:42:10 UTC) #63
nyquist
blimp lgtm
4 years, 2 months ago (2016-09-23 15:19:47 UTC) #64
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/2345143002/240001
4 years, 2 months ago (2016-09-23 17:13:42 UTC) #67
commit-bot: I haz the power
Committed patchset #13 (id:240001)
4 years, 2 months ago (2016-09-23 17:19:37 UTC) #69
commit-bot: I haz the power
Patchset 13 (id:??) landed as https://crrev.com/34ae27889dd8c8ffd5f5ca8c7bc10c17e57c12e2 Cr-Commit-Position: refs/heads/master@{#420641}
4 years, 2 months ago (2016-09-23 17:21:47 UTC) #71
Khushal
4 years, 2 months ago (2016-09-23 23:52:46 UTC) #72
Message was sent while issue was closed.
A revert of this CL (patchset #13 id:240001) has been created in
https://codereview.chromium.org/2369683002/ by khushalsagar@chromium.org.

The reason for reverting is: Broke the internal build,
https://uberchromegw.corp.google.com/i/internal.client.clank_tot/builders/ins....

Powered by Google App Engine
This is Rietveld 408576698