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

Issue 1158053005: Android: Store language .pak files in res/raw rather than assets (Closed)

Created:
5 years, 6 months ago by agrieve
Modified:
5 years, 2 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, mkwst+moarreviews-shell_chromium.org, lcwu+watch_chromium.org, jam, android-webview-reviews_chromium.org, darin-cc_chromium.org, yfriedman+watch_chromium.org, gunsch+watch_chromium.org, klundberg+watch_chromium.org, erikwright+watch_chromium.org, jbudorick+watch_chromium.org, jochen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@load-from-apk-v8
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Android: Store language .pak files in res/raw rather than assets This is a prerequisite for having them live within APK splits. Although pak files need to be renamed to be stored under res/raw, ResourceExtractor restores their original name during extraction (so no change to native code). All sub-locales are stored and extracted together, just as before. BUG=371610 Committed: https://crrev.com/f30e04470453ccd7e6a9abf586185b991d174902 Cr-Commit-Position: refs/heads/master@{#335350}

Patch Set 1 #

Patch Set 2 : Revert always running deleteFiles() #

Total comments: 9

Patch Set 3 : Addressed review comments #

Patch Set 4 : rebased #

Total comments: 10

Patch Set 5 : yfriedman review comments #

Total comments: 2

Patch Set 6 : rebased #

Patch Set 7 : fix chrome shell compile on GN #

Unified diffs Side-by-side diffs Delta from patch set Stats (+342 lines, -188 lines) Patch
M android_webview/glue/java/src/com/android/webview/chromium/WebViewChromiumFactoryProvider.java View 1 1 chunk +1 line, -1 line 0 comments Download
M android_webview/test/shell/src/org/chromium/android_webview/shell/AwShellApplication.java View 1 chunk +1 line, -2 lines 0 comments Download
M base/android/java/src/org/chromium/base/ResourceExtractor.java View 1 2 3 4 9 chunks +92 lines, -123 lines 0 comments Download
A build/android/gyp/locale_pak_resources.py View 1 2 3 4 1 chunk +97 lines, -0 lines 0 comments Download
A build/android/locale_pak_resources.gypi View 1 chunk +52 lines, -0 lines 0 comments Download
M build/config/android/rules.gni View 1 2 3 4 1 chunk +57 lines, -0 lines 0 comments Download
M chrome/android/BUILD.gn View 1 2 3 4 5 6 4 chunks +16 lines, -9 lines 0 comments Download
M chrome/android/java_staging/src/org/chromium/chrome/browser/ChromeMobileApplication.java View 1 2 3 4 5 3 chunks +4 lines, -2 lines 0 comments Download
M chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellApplication.java View 3 chunks +2 lines, -2 lines 0 comments Download
M chrome/chrome.gyp View 1 2 3 4 5 2 chunks +13 lines, -0 lines 0 comments Download
M chrome/chrome_android_paks.gypi View 2 chunks +2 lines, -44 lines 0 comments Download
M chromecast/browser/android/apk/src/org/chromium/chromecast/shell/CastApplication.java View 1 chunk +1 line, -1 line 0 comments Download
M components/test/android/browsertests_apk/src/org/chromium/components_browsertests_apk/ComponentsBrowserTestsApplication.java View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/shell/android/browsertests_apk/src/org/chromium/content_browsertests_apk/ContentBrowserTestsApplication.java View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/shell/android/linker_test_apk/src/org/chromium/chromium_linker_test_apk/ChromiumLinkerTestApplication.java View 1 chunk +1 line, -1 line 0 comments Download
M content/shell/android/shell_apk/src/org/chromium/content_shell_apk/ContentShellApplication.java View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 37 (8 generated)
agrieve
5 years, 6 months ago (2015-06-05 14:46:59 UTC) #2
Torne
How does this work in WebView, where we don't extract resources and load them directly ...
5 years, 6 months ago (2015-06-05 14:51:28 UTC) #3
Torne
How does this work in WebView, where we don't extract resources and load them directly ...
5 years, 6 months ago (2015-06-05 14:51:30 UTC) #4
agrieve
On 2015/06/05 14:51:30, Torne wrote: > How does this work in WebView, where we don't ...
5 years, 6 months ago (2015-06-05 15:16:47 UTC) #5
Torne
On 2015/06/05 15:16:47, agrieve wrote: > On 2015/06/05 14:51:30, Torne wrote: > > How does ...
5 years, 6 months ago (2015-06-05 15:24:03 UTC) #6
agrieve
On 2015/06/05 15:24:03, Torne wrote: > On 2015/06/05 15:16:47, agrieve wrote: > > On 2015/06/05 ...
5 years, 6 months ago (2015-06-09 01:15:42 UTC) #7
Torne
OK, LGTM from webview perspective. Thanks for explaining in detail.
5 years, 6 months ago (2015-06-09 12:29:37 UTC) #8
cjhopman
https://codereview.chromium.org/1158053005/diff/20001/base/android/java/src/org/chromium/base/ResourceExtractor.java File base/android/java/src/org/chromium/base/ResourceExtractor.java (right): https://codereview.chromium.org/1158053005/diff/20001/base/android/java/src/org/chromium/base/ResourceExtractor.java#newcode87 base/android/java/src/org/chromium/base/ResourceExtractor.java:87: is.close(); if is.close() throws an exception, os is never ...
5 years, 6 months ago (2015-06-09 22:35:13 UTC) #9
agrieve
https://codereview.chromium.org/1158053005/diff/20001/base/android/java/src/org/chromium/base/ResourceExtractor.java File base/android/java/src/org/chromium/base/ResourceExtractor.java (right): https://codereview.chromium.org/1158053005/diff/20001/base/android/java/src/org/chromium/base/ResourceExtractor.java#newcode87 base/android/java/src/org/chromium/base/ResourceExtractor.java:87: is.close(); On 2015/06/09 22:35:13, cjhopman wrote: > if is.close() ...
5 years, 6 months ago (2015-06-11 15:34:38 UTC) #10
Yaron
https://codereview.chromium.org/1158053005/diff/20001/base/android/java/src/org/chromium/base/ResourceExtractor.java File base/android/java/src/org/chromium/base/ResourceExtractor.java (right): https://codereview.chromium.org/1158053005/diff/20001/base/android/java/src/org/chromium/base/ResourceExtractor.java#newcode368 base/android/java/src/org/chromium/base/ResourceExtractor.java:368: // deleteFiles() will not run and some files will ...
5 years, 6 months ago (2015-06-11 20:34:12 UTC) #11
agrieve
On 2015/06/11 20:34:12, Yaron wrote: > https://codereview.chromium.org/1158053005/diff/20001/base/android/java/src/org/chromium/base/ResourceExtractor.java > File base/android/java/src/org/chromium/base/ResourceExtractor.java (right): > > https://codereview.chromium.org/1158053005/diff/20001/base/android/java/src/org/chromium/base/ResourceExtractor.java#newcode368 > ...
5 years, 6 months ago (2015-06-13 00:24:04 UTC) #12
agrieve
jaekyun@chromium.org: Please review changes in components/test jhawkins@chromium.org: Please review changes in chrome/ gunsch@chromium.org: Please review ...
5 years, 6 months ago (2015-06-16 00:32:53 UTC) #14
Jaekyun Seok (inactive)
lgtm
5 years, 6 months ago (2015-06-16 00:39:02 UTC) #15
Yaron
https://codereview.chromium.org/1158053005/diff/60001/base/android/java/src/org/chromium/base/ResourceExtractor.java File base/android/java/src/org/chromium/base/ResourceExtractor.java (right): https://codereview.chromium.org/1158053005/diff/60001/base/android/java/src/org/chromium/base/ResourceExtractor.java#newcode71 base/android/java/src/org/chromium/base/ResourceExtractor.java:71: if (buffer == null) { This is unnecessary - ...
5 years, 6 months ago (2015-06-16 03:50:45 UTC) #16
agrieve
https://codereview.chromium.org/1158053005/diff/60001/base/android/java/src/org/chromium/base/ResourceExtractor.java File base/android/java/src/org/chromium/base/ResourceExtractor.java (right): https://codereview.chromium.org/1158053005/diff/60001/base/android/java/src/org/chromium/base/ResourceExtractor.java#newcode71 base/android/java/src/org/chromium/base/ResourceExtractor.java:71: if (buffer == null) { On 2015/06/16 03:50:45, Yaron ...
5 years, 6 months ago (2015-06-16 15:47:42 UTC) #17
Yaron
+newt who's our android localization expert https://codereview.chromium.org/1158053005/diff/80001/build/android/gyp/locale_pak_resources.py File build/android/gyp/locale_pak_resources.py (right): https://codereview.chromium.org/1158053005/diff/80001/build/android/gyp/locale_pak_resources.py#newcode77 build/android/gyp/locale_pak_resources.py:77: lang = android_locale[0:2] ...
5 years, 6 months ago (2015-06-16 22:42:20 UTC) #19
agrieve
https://codereview.chromium.org/1158053005/diff/80001/build/android/gyp/locale_pak_resources.py File build/android/gyp/locale_pak_resources.py (right): https://codereview.chromium.org/1158053005/diff/80001/build/android/gyp/locale_pak_resources.py#newcode77 build/android/gyp/locale_pak_resources.py:77: lang = android_locale[0:2] On 2015/06/16 22:42:20, Yaron wrote: > ...
5 years, 6 months ago (2015-06-17 01:25:41 UTC) #20
Yaron
ok this lgtm but should still wait for newt
5 years, 6 months ago (2015-06-17 01:50:42 UTC) #21
newt (away)
On 2015/06/17 01:50:42, Yaron wrote: > ok this lgtm but should still wait for newt ...
5 years, 6 months ago (2015-06-17 02:25:09 UTC) #22
Yaron
On 2015/06/17 02:25:09, newt wrote: > On 2015/06/17 01:50:42, Yaron wrote: > > ok this ...
5 years, 6 months ago (2015-06-17 02:34:33 UTC) #23
James Hawkins
lgtm
5 years, 6 months ago (2015-06-17 05:29:31 UTC) #24
gunsch
chromecast rs lgtm
5 years, 6 months ago (2015-06-17 16:41:05 UTC) #25
cjhopman
lgtm
5 years, 6 months ago (2015-06-17 22:17:07 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1158053005/100001
5 years, 6 months ago (2015-06-19 17:29:39 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_dbg/builds/83435)
5 years, 6 months ago (2015-06-19 17:58:02 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1158053005/120001
5 years, 6 months ago (2015-06-19 20:11:22 UTC) #34
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 6 months ago (2015-06-19 21:20:11 UTC) #35
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/f30e04470453ccd7e6a9abf586185b991d174902 Cr-Commit-Position: refs/heads/master@{#335350}
5 years, 6 months ago (2015-06-19 21:21:52 UTC) #36
qinmin
5 years, 6 months ago (2015-06-20 02:53:12 UTC) #37
Message was sent while issue was closed.
A revert of this CL (patchset #7 id:120001) has been created in
https://codereview.chromium.org/1193113004/ by qinmin@chromium.org.

The reason for reverting is: this change breaks android TOT bot.

Powered by Google App Engine
This is Rietveld 408576698