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

Issue 1147213004: Store and load icudtl.dat directly from the apk rather than extracting on start-up (Closed)

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

Description

Store and load icudtl.dat directly from the apk rather than extracting on start-up. Also changes so that browser process caches a FD to the file rather than re-opening it for each child process. We store icudtl.dat uncompressed in the apk now, increasing the apk size, but saving 6mb on-disk. BUG=394502 Committed: https://crrev.com/f3930cfae7a93c5065588c9ba7be5c6927f46588 Cr-Commit-Position: refs/heads/master@{#335261}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Delete pointless empty array #

Total comments: 6

Patch Set 3 : Review comments #

Total comments: 3

Patch Set 4 : Rebased to come before v8 change #

Patch Set 5 : CHECK(fd > 0) -> CHECK_GE(fd, 0) #

Total comments: 6

Patch Set 6 : formatting nit #

Total comments: 7

Patch Set 7 : Address review style nits #

Patch Set 8 : Add new param to ash/shell/content_client/shell_content_browser_client.cc #

Patch Set 9 : Fix compile of battery_monitor_integration_browsertest.cc #

Patch Set 10 : Keep extracting for components/ #

Total comments: 2

Patch Set 11 : merged commit for trybot #

Patch Set 12 : rebase for trybot 2 #

Patch Set 13 : rebased for review #

Patch Set 14 : rebased #

Patch Set 15 : rebase #

Patch Set 16 : fix compile #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -25 lines) Patch
M android_webview/test/shell/src/org/chromium/android_webview/shell/AwShellApplication.java View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -3 lines 0 comments Download
M base/i18n/icu_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +16 lines, -0 lines 0 comments Download
M build/config/android/internal_rules.gni View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +6 lines, -0 lines 0 comments Download
M build/config/android/rules.gni View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +6 lines, -0 lines 0 comments Download
M build/java_apk.gypi View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M chrome/android/java_staging/src/org/chromium/chrome/browser/ChromeMobileApplication.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellApplication.java View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M chromecast/browser/android/apk/src/org/chromium/chromecast/shell/CastApplication.java View 1 2 3 1 chunk +0 lines, -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 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -2 lines 0 comments Download
M content/shell/android/browsertests_apk/src/org/chromium/content_browsertests_apk/ContentBrowserTestsApplication.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -1 line 0 comments Download
M content/shell/android/linker_test_apk/src/org/chromium/chromium_linker_test_apk/ChromiumLinkerTestApplication.java View 1 2 3 1 chunk +0 lines, -6 lines 0 comments Download
M content/shell/android/shell_apk/src/org/chromium/content_shell_apk/ContentShellApplication.java View 1 2 3 1 chunk +0 lines, -6 lines 0 comments Download

Messages

Total messages: 53 (16 generated)
agrieve
yfriedman@chromium.org: Please review changes in java thestig@chromium.org: Please review changes in base/i18n
5 years, 6 months ago (2015-06-01 17:13:20 UTC) #2
Yaron
https://codereview.chromium.org/1147213004/diff/1/android_webview/test/shell/src/org/chromium/android_webview/shell/AwShellApplication.java File android_webview/test/shell/src/org/chromium/android_webview/shell/AwShellApplication.java (right): https://codereview.chromium.org/1147213004/diff/1/android_webview/test/shell/src/org/chromium/android_webview/shell/AwShellApplication.java#newcode24 android_webview/test/shell/src/org/chromium/android_webview/shell/AwShellApplication.java:24: private static final String[] MANDATORY_PAKS = {}; Please remove ...
5 years, 6 months ago (2015-06-01 22:24:52 UTC) #3
Yaron
https://codereview.chromium.org/1147213004/diff/20001/base/i18n/icu_util.cc File base/i18n/icu_util.cc (right): https://codereview.chromium.org/1147213004/diff/20001/base/i18n/icu_util.cc#newcode125 base/i18n/icu_util.cc:125: #elif (ICU_UTIL_DATA_IMPL == ICU_UTIL_DATA_FILE) && OS_ANDROID defined(OS_ANDROID) https://codereview.chromium.org/1147213004/diff/20001/base/i18n/icu_util.cc#newcode130 base/i18n/icu_util.cc:130: ...
5 years, 6 months ago (2015-06-02 14:28:01 UTC) #4
agrieve
https://codereview.chromium.org/1147213004/diff/1/android_webview/test/shell/src/org/chromium/android_webview/shell/AwShellApplication.java File android_webview/test/shell/src/org/chromium/android_webview/shell/AwShellApplication.java (right): https://codereview.chromium.org/1147213004/diff/1/android_webview/test/shell/src/org/chromium/android_webview/shell/AwShellApplication.java#newcode24 android_webview/test/shell/src/org/chromium/android_webview/shell/AwShellApplication.java:24: private static final String[] MANDATORY_PAKS = {}; On 2015/06/01 ...
5 years, 6 months ago (2015-06-02 17:24:40 UTC) #5
Lei Zhang
+jshin for base/i18n/ https://codereview.chromium.org/1147213004/diff/40001/base/i18n/icu_util.cc File base/i18n/icu_util.cc (right): https://codereview.chromium.org/1147213004/diff/40001/base/i18n/icu_util.cc#newcode128 base/i18n/icu_util.cc:128: CHECK(fd != -1); CHECK_GE(fd, 0); https://codereview.chromium.org/1147213004/diff/40001/base/i18n/icu_util.cc#newcode131 ...
5 years, 6 months ago (2015-06-02 20:31:16 UTC) #7
Yaron
lgtm for the java bits. I'm out for the rest of the week so you ...
5 years, 6 months ago (2015-06-02 21:19:40 UTC) #8
Yaron
On 2015/06/02 21:19:40, Yaron wrote: > lgtm for the java bits. I'm out for the ...
5 years, 6 months ago (2015-06-02 21:24:00 UTC) #9
Yaron
On 2015/06/02 21:24:00, Yaron wrote: > On 2015/06/02 21:19:40, Yaron wrote: > > lgtm for ...
5 years, 6 months ago (2015-06-02 21:27:37 UTC) #10
agrieve
jam@chromium.org: Please review changes in All of the *content_browser_client.* files
5 years, 6 months ago (2015-06-03 14:51:52 UTC) #12
agrieve
On 2015/06/02 20:31:16, Lei Zhang wrote: > +jshin for base/i18n/ > > https://codereview.chromium.org/1147213004/diff/40001/base/i18n/icu_util.cc > File ...
5 years, 6 months ago (2015-06-03 14:59:05 UTC) #13
jam
https://codereview.chromium.org/1147213004/diff/80001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/1147213004/diff/80001/chrome/browser/chrome_content_browser_client.cc#newcode2294 chrome/browser/chrome_content_browser_client.cc:2294: regions->insert(std::make_pair(kAndroidICUDataDescriptor, icudtl_region_)); why is chrome layer doing this instead ...
5 years, 6 months ago (2015-06-04 03:13:30 UTC) #14
agrieve
https://codereview.chromium.org/1147213004/diff/80001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/1147213004/diff/80001/chrome/browser/chrome_content_browser_client.cc#newcode2294 chrome/browser/chrome_content_browser_client.cc:2294: regions->insert(std::make_pair(kAndroidICUDataDescriptor, icudtl_region_)); On 2015/06/04 03:13:30, jam wrote: > why ...
5 years, 6 months ago (2015-06-04 19:17:20 UTC) #15
Lei Zhang
base and chrome lgtm with some nits https://codereview.chromium.org/1147213004/diff/100001/base/i18n/icu_util.cc File base/i18n/icu_util.cc (right): https://codereview.chromium.org/1147213004/diff/100001/base/i18n/icu_util.cc#newcode57 base/i18n/icu_util.cc:57: namespace { ...
5 years, 6 months ago (2015-06-05 02:52:44 UTC) #16
agrieve
https://codereview.chromium.org/1147213004/diff/100001/base/i18n/icu_util.cc File base/i18n/icu_util.cc (right): https://codereview.chromium.org/1147213004/diff/100001/base/i18n/icu_util.cc#newcode57 base/i18n/icu_util.cc:57: namespace { On 2015/06/05 02:52:43, Lei Zhang wrote: > ...
5 years, 6 months ago (2015-06-05 14:52:14 UTC) #17
agrieve
5 years, 6 months ago (2015-06-05 14:52:16 UTC) #18
agrieve
On 2015/06/05 14:52:16, agrieve wrote: Added cjhopman for the build/ changes
5 years, 6 months ago (2015-06-05 14:54:28 UTC) #20
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1147213004/140001
5 years, 6 months ago (2015-06-08 20:02:37 UTC) #23
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_compile_dbg on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_compile_dbg/builds/24004) linux_android_rel_ng on ...
5 years, 6 months ago (2015-06-08 20:36:18 UTC) #25
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1147213004/160001
5 years, 6 months ago (2015-06-09 00:39:42 UTC) #28
jam
https://codereview.chromium.org/1147213004/diff/80001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/1147213004/diff/80001/chrome/browser/chrome_content_browser_client.cc#newcode2294 chrome/browser/chrome_content_browser_client.cc:2294: regions->insert(std::make_pair(kAndroidICUDataDescriptor, icudtl_region_)); On 2015/06/04 19:17:20, agrieve wrote: > On ...
5 years, 6 months ago (2015-06-09 01:12:46 UTC) #29
Yaron
https://codereview.chromium.org/1147213004/diff/80001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/1147213004/diff/80001/chrome/browser/chrome_content_browser_client.cc#newcode2294 chrome/browser/chrome_content_browser_client.cc:2294: regions->insert(std::make_pair(kAndroidICUDataDescriptor, icudtl_region_)); On 2015/06/09 01:12:46, jam wrote: > On ...
5 years, 6 months ago (2015-06-09 03:39:40 UTC) #30
jungshik at Google
Sorry for the dealy. base/i18n : LGTM https://codereview.chromium.org/1147213004/diff/180001/base/i18n/icu_util.cc File base/i18n/icu_util.cc (right): https://codereview.chromium.org/1147213004/diff/180001/base/i18n/icu_util.cc#newcode185 base/i18n/icu_util.cc:185: #endif // ...
5 years, 6 months ago (2015-06-09 23:45:15 UTC) #31
agrieve
On 2015/06/09 01:12:46, jam wrote: > https://codereview.chromium.org/1147213004/diff/80001/chrome/browser/chrome_content_browser_client.cc > File chrome/browser/chrome_content_browser_client.cc (right): > > https://codereview.chromium.org/1147213004/diff/80001/chrome/browser/chrome_content_browser_client.cc#newcode2294 > ...
5 years, 6 months ago (2015-06-11 15:00:32 UTC) #32
agrieve
On 2015/06/11 15:00:32, agrieve wrote: > On 2015/06/09 01:12:46, jam wrote: > > > https://codereview.chromium.org/1147213004/diff/80001/chrome/browser/chrome_content_browser_client.cc ...
5 years, 6 months ago (2015-06-13 02:15:57 UTC) #33
jam
On 2015/06/13 02:15:57, agrieve wrote: > On 2015/06/11 15:00:32, agrieve wrote: > > On 2015/06/09 ...
5 years, 6 months ago (2015-06-16 03:13:33 UTC) #34
Yaron
still lgtm
5 years, 6 months ago (2015-06-16 03:17:45 UTC) #35
agrieve
jaekyun@chromium.org: Please review changes in components/test/android gunsch@chromium.org: Please review changes in chromecast/ torne@chromium.org: Please review ...
5 years, 6 months ago (2015-06-16 03:20:03 UTC) #38
agrieve
On 2015/06/16 03:13:33, jam wrote: > On 2015/06/13 02:15:57, agrieve wrote: > > On 2015/06/11 ...
5 years, 6 months ago (2015-06-16 03:21:04 UTC) #39
Jaekyun Seok (inactive)
lgtm
5 years, 6 months ago (2015-06-16 03:35:58 UTC) #40
Torne
android_webview LGTM
5 years, 6 months ago (2015-06-16 10:10:53 UTC) #41
cjhopman
lgtm
5 years, 6 months ago (2015-06-17 21:22:12 UTC) #42
gunsch
lgtm
5 years, 6 months ago (2015-06-18 01:55:30 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1147213004/280001
5 years, 6 months ago (2015-06-19 12:18:21 UTC) #46
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_clang_dbg_recipe/builds/88673)
5 years, 6 months ago (2015-06-19 13:12:39 UTC) #48
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1147213004/300001
5 years, 6 months ago (2015-06-19 13:31:50 UTC) #51
commit-bot: I haz the power
Committed patchset #16 (id:300001)
5 years, 6 months ago (2015-06-19 15:35:58 UTC) #52
commit-bot: I haz the power
5 years, 6 months ago (2015-06-19 15:36:45 UTC) #53
Message was sent while issue was closed.
Patchset 16 (id:??) landed as
https://crrev.com/f3930cfae7a93c5065588c9ba7be5c6927f46588
Cr-Commit-Position: refs/heads/master@{#335261}

Powered by Google App Engine
This is Rietveld 408576698