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

Issue 156333002: Enable icu_use_data_file_flag on Android (Closed)

Created:
6 years, 10 months ago by jungshik at Google
Modified:
6 years, 9 months ago
CC:
chromium-reviews, Andrew Hayden (chromium.org), Miguel Garcia, Torne
Visibility:
Public.

Description

Enable icu_use_data_file_flag on Android 0. Roll icu to r249466 to copy Android-specific icudtl.dat 1. Turn it in build/common.gypi by default except for android webview build. Move it inside L2 var dict and pull it up to the top level var dict to make 'Google Chrome' build on Android happy. 2. Add an entry for icudtl.dat to chrome/chrome_android_paks.gypi so that it's copied to assets directory for Chrome and related targets. 3. Extract icudtl.dat from the asset and copy to DIR_ANDROID_APP_DATA and make it world-readable so that child processes (sandboxed with uid) can read it. 4. Add icudtl.dat to MANDATORY_PAKS list in various Android build targets Google Chrome has #4 but in a separate CL ( https://chrome-internal-review.googlesource.com/#/c/155554/ ). That CL will land before this CL. This also depends on a Blink change https://codereview.chromium.org/183013006/ TBR=avi@chromium.org BUG=72633 TEST=base_unittests:*Convers*, net_unittests:*IDN*, browser tests on all platforms. TEST=On Android, 1. Layout tests 2. build/android/test_runner.py gtest -s webkit_unit_tests --gtest_filter=WebFrameTest.SelectRange* Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=253938 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=255762

Patch Set 1 #

Patch Set 2 : use DIR_ANDROID_APP_DATA #

Patch Set 3 : roll icu to 249466 #

Patch Set 4 : set icu_use_data_file_flag to 1 in Android gtest setup script #

Patch Set 5 : extract icudtl.dat in ResourceExtractor.java #

Patch Set 6 : fix typo #

Patch Set 7 : add comment about webview #

Patch Set 8 : icudtl.dat made readable #

Total comments: 2

Patch Set 9 : tab removed. log removed #

Total comments: 4

Patch Set 10 : Add icudtl.dat to MANDATORY_PAK list #

Patch Set 11 : add icudtl.dat to AwShell #

Patch Set 12 : content_shell still not working #

Patch Set 13 : copy icudtl.dat to assets directory to be included in apk #

Total comments: 3

Patch Set 14 : add icudata copy target and use it #

Patch Set 15 : move content_icudata to content.gyp #

Patch Set 16 : move content_icudata dependency to apk targets #

Patch Set 17 : add_asset_paths in java_apk.gypi #

Patch Set 18 : going back to PS 16 #

Patch Set 19 : put icu_use_da.. in a 2ndary variable dict #

Patch Set 20 : trailing wsp removed #

Patch Set 21 : icu_use_data=1 at level 2 if awb==0 #

Patch Set 22 : add else-branch (android_webview_build==1) #

Total comments: 3

Patch Set 23 : fix nits #

Total comments: 3

Patch Set 24 : Log.w -> Log.e in ResourceExtractor-deleteFiles #

Total comments: 4

Patch Set 25 : add comments about icudt per review #

Patch Set 26 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+139 lines, -24 lines) Patch
M DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +1 line, -1 line 0 comments Download
M android_webview/android_webview_tests.gypi View 1 2 3 4 5 6 7 8 9 10 2 chunks +14 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 1 chunk +1 line, -1 line 0 comments Download
M base/i18n/icu_util.cc View 1 8 1 chunk +2 lines, -0 lines 0 comments Download
M build/android/pylib/gtest/setup.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M build/common.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 5 chunks +10 lines, -13 lines 0 comments Download
M chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellApplication.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/chrome_android_paks.gypi View 1 chunk +10 lines, -0 lines 0 comments Download
M content/content.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1 chunk +16 lines, -0 lines 0 comments Download
M content/content_shell.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 2 chunks +8 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 4 chunks +16 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ResourceExtractor.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 7 chunks +29 lines, -4 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 1 chunk +4 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 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +10 lines, -1 line 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 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +10 lines, -2 lines 0 comments Download

Messages

Total messages: 57 (0 generated)
Andrew Hayden (chromium.org)
LGTM +miguelg +torne as FYI
6 years, 10 months ago (2014-02-06 18:06:54 UTC) #1
jungshik at Google
On 2014/02/06 18:06:54, Andrew Hayden wrote: > LGTM > +miguelg +torne as FYI Thanks, but ...
6 years, 10 months ago (2014-02-07 00:47:52 UTC) #2
jungshik at Google
On 2014/02/07 00:47:52, Jungshik Shin wrote: > On 2014/02/06 18:06:54, Andrew Hayden wrote: > > ...
6 years, 10 months ago (2014-02-07 01:34:25 UTC) #3
jungshik at Google
On 2014/02/07 01:34:25, Jungshik Shin wrote: > On 2014/02/07 00:47:52, Jungshik Shin wrote: > > ...
6 years, 10 months ago (2014-02-07 19:58:36 UTC) #4
jungshik at Google
Ben, can you take a look at my attempt to extract icudtl.dat for Android? It ...
6 years, 10 months ago (2014-02-08 01:33:14 UTC) #5
jungshik at Google
On 2014/02/08 01:33:14, Jungshik Shin wrote: > Ben, can you take a look at my ...
6 years, 10 months ago (2014-02-10 18:56:27 UTC) #6
jungshik at Google
Mark : can you review icu_util.cc and gyp? Maruel: can you review setup.py on Android? ...
6 years, 10 months ago (2014-02-10 20:04:02 UTC) #7
Mark Mentovai
LGTM https://codereview.chromium.org/156333002/diff/280001/base/i18n/icu_util.cc File base/i18n/icu_util.cc (right): https://codereview.chromium.org/156333002/diff/280001/base/i18n/icu_util.cc#newcode107 base/i18n/icu_util.cc:107: DVLOG(0) << "Looking for the icudata at " ...
6 years, 10 months ago (2014-02-10 20:07:12 UTC) #8
M-A Ruel
build/android/pylib/gtest/setup.py rubberstamp lgtm but I'm not an owner in this directory.
6 years, 10 months ago (2014-02-10 20:10:01 UTC) #9
jungshik at Google
On 2014/02/10 20:07:12, Mark Mentovai wrote: > LGTM > > https://codereview.chromium.org/156333002/diff/280001/base/i18n/icu_util.cc > File base/i18n/icu_util.cc (right): ...
6 years, 10 months ago (2014-02-10 20:41:11 UTC) #10
jungshik at Google
@frankf, can you do owner-review of android/pylib/gtest/setup.py? Thanks. @maruel, thank you for the alert/lgtm.
6 years, 10 months ago (2014-02-10 20:44:33 UTC) #11
jungshik at Google
bulach@chromium.org: Please review changes in ResourceExtractor.java (and gtest/setup.py if you like to). Thanks.
6 years, 10 months ago (2014-02-10 20:47:13 UTC) #12
benm (inactive)
https://codereview.chromium.org/156333002/diff/380001/content/public/android/java/src/org/chromium/content/browser/ResourceExtractor.java File content/public/android/java/src/org/chromium/content/browser/ResourceExtractor.java (right): https://codereview.chromium.org/156333002/diff/380001/content/public/android/java/src/org/chromium/content/browser/ResourceExtractor.java#newcode346 content/public/android/java/src/org/chromium/content/browser/ResourceExtractor.java:346: * false for the WebView build. i think that ...
6 years, 10 months ago (2014-02-10 21:30:44 UTC) #13
frankf
//build/android/pylib lgtm
6 years, 10 months ago (2014-02-10 21:47:59 UTC) #14
jungshik at Google
Thank you for taking a look, Ben. Below is my answer. https://codereview.chromium.org/156333002/diff/380001/content/public/android/java/src/org/chromium/content/browser/ResourceExtractor.java File content/public/android/java/src/org/chromium/content/browser/ResourceExtractor.java (right): ...
6 years, 10 months ago (2014-02-10 22:10:30 UTC) #15
jungshik at Google
On 2014/02/10 22:10:30, Jungshik Shin wrote: > Thank you for taking a look, Ben. Below ...
6 years, 10 months ago (2014-02-10 22:26:10 UTC) #16
benm (inactive)
https://codereview.chromium.org/156333002/diff/380001/content/public/android/java/src/org/chromium/content/browser/ResourceExtractor.java File content/public/android/java/src/org/chromium/content/browser/ResourceExtractor.java (right): https://codereview.chromium.org/156333002/diff/380001/content/public/android/java/src/org/chromium/content/browser/ResourceExtractor.java#newcode346 content/public/android/java/src/org/chromium/content/browser/ResourceExtractor.java:346: * false for the WebView build. On 2014/02/10 22:10:31, ...
6 years, 10 months ago (2014-02-10 22:28:32 UTC) #17
jungshik at Google
Thank you for the reply. Inlined is my reply. https://codereview.chromium.org/156333002/diff/380001/content/public/android/java/src/org/chromium/content/browser/ResourceExtractor.java File content/public/android/java/src/org/chromium/content/browser/ResourceExtractor.java (right): https://codereview.chromium.org/156333002/diff/380001/content/public/android/java/src/org/chromium/content/browser/ResourceExtractor.java#newcode346 content/public/android/java/src/org/chromium/content/browser/ResourceExtractor.java:346: ...
6 years, 10 months ago (2014-02-10 23:41:46 UTC) #18
jungshik at Google
6 years, 10 months ago (2014-02-10 23:55:36 UTC) #19
jungshik at Google
frankf, bulach, cjhopman: do you have any opinion on what I wrote below? https://codereview.chromium.org/156333002/diff/610001/content/content_tests.gypi File ...
6 years, 10 months ago (2014-02-11 19:55:06 UTC) #20
cjhopman
https://codereview.chromium.org/156333002/diff/610001/content/content_tests.gypi File content/content_tests.gypi (right): https://codereview.chromium.org/156333002/diff/610001/content/content_tests.gypi#newcode1450 content/content_tests.gypi:1450: 'includes': [ '../build/java_apk.gypi' ], On 2014/02/11 19:55:06, Jungshik Shin ...
6 years, 10 months ago (2014-02-11 20:54:59 UTC) #21
bulach
lgtm % chris being happy :) there's a few crashes in the android rel try-bot: ...
6 years, 10 months ago (2014-02-12 10:53:19 UTC) #22
jungshik at Google
On 2014/02/12 10:53:19, bulach wrote: > lgtm % chris being happy :) thanks a lot ...
6 years, 10 months ago (2014-02-13 20:02:03 UTC) #23
jungshik at Google
On 2014/02/13 20:02:03, Jungshik Shin wrote: > On 2014/02/12 10:53:19, bulach wrote: > > lgtm ...
6 years, 10 months ago (2014-02-14 08:03:32 UTC) #24
Andrew Hayden (chromium.org)
+aurimas, who has been playing around with PAK files.
6 years, 10 months ago (2014-02-14 14:49:03 UTC) #25
cjhopman
On 2014/02/14 14:49:03, Andrew Hayden wrote: > +aurimas, who has been playing around with PAK ...
6 years, 10 months ago (2014-02-14 18:38:33 UTC) #26
aurimas (slooooooooow)
On 2014/02/14 18:38:33, cjhopman wrote: > On 2014/02/14 14:49:03, Andrew Hayden wrote: > > +aurimas, ...
6 years, 10 months ago (2014-02-18 18:13:01 UTC) #27
jungshik at Google
Thank you for the review, bulach, aurimas, cjhopman ! @Mark, can you take another look ...
6 years, 10 months ago (2014-02-20 00:02:48 UTC) #28
jungshik at Google
yfriedman@chromium.org: Please review changes in content/{shell,public}/android.
6 years, 10 months ago (2014-02-20 09:37:59 UTC) #29
jungshik at Google
avi@chromium.org: Please review / owner-approve changes in contents/. benm@ : can you review android_webview changes ...
6 years, 10 months ago (2014-02-20 09:42:03 UTC) #30
benm (inactive)
android_webview lgtm % nit thanks! https://codereview.chromium.org/156333002/diff/1420001/content/public/android/java/src/org/chromium/content/browser/ResourceExtractor.java File content/public/android/java/src/org/chromium/content/browser/ResourceExtractor.java (right): https://codereview.chromium.org/156333002/diff/1420001/content/public/android/java/src/org/chromium/content/browser/ResourceExtractor.java#newcode341 content/public/android/java/src/org/chromium/content/browser/ResourceExtractor.java:341: * this process if ...
6 years, 10 months ago (2014-02-20 14:13:06 UTC) #31
Mark Mentovai
LGTM. For this round, I only looked at the latest changes to build/common.gypi. https://codereview.chromium.org/156333002/diff/1420001/build/common.gypi File ...
6 years, 10 months ago (2014-02-20 14:15:53 UTC) #32
Yaron
lgtm https://codereview.chromium.org/156333002/diff/1420001/content/public/android/java/src/org/chromium/content/browser/ResourceExtractor.java File content/public/android/java/src/org/chromium/content/browser/ResourceExtractor.java (right): https://codereview.chromium.org/156333002/diff/1420001/content/public/android/java/src/org/chromium/content/browser/ResourceExtractor.java#newcode318 content/public/android/java/src/org/chromium/content/browser/ResourceExtractor.java:318: } nit: add ws line after
6 years, 10 months ago (2014-02-20 18:15:00 UTC) #33
Andrew Hayden (chromium.org)
https://codereview.chromium.org/156333002/diff/1560001/content/public/android/java/src/org/chromium/content/browser/ResourceExtractor.java File content/public/android/java/src/org/chromium/content/browser/ResourceExtractor.java (right): https://codereview.chromium.org/156333002/diff/1560001/content/public/android/java/src/org/chromium/content/browser/ResourceExtractor.java#newcode327 content/public/android/java/src/org/chromium/content/browser/ResourceExtractor.java:327: Log.w(LOGTAG, "Unable to remove the icudata " + icudata.getName()); ...
6 years, 10 months ago (2014-02-21 08:49:39 UTC) #34
benm (inactive)
https://codereview.chromium.org/156333002/diff/1560001/content/public/android/java/src/org/chromium/content/browser/ResourceExtractor.java File content/public/android/java/src/org/chromium/content/browser/ResourceExtractor.java (right): https://codereview.chromium.org/156333002/diff/1560001/content/public/android/java/src/org/chromium/content/browser/ResourceExtractor.java#newcode327 content/public/android/java/src/org/chromium/content/browser/ResourceExtractor.java:327: Log.w(LOGTAG, "Unable to remove the icudata " + icudata.getName()); ...
6 years, 10 months ago (2014-02-21 13:55:41 UTC) #35
jungshik at Google
Log.e is put in place of Log.w in ResourceExtractor.java. Andrew and Ben, take another look. ...
6 years, 10 months ago (2014-02-21 21:50:48 UTC) #36
Andrew Hayden (chromium.org)
LGTM! Can't wait for this to land! https://codereview.chromium.org/156333002/diff/1610001/chrome/android/testshell/java/src/org/chromium/chrome/testshell/ChromiumTestShellApplication.java File chrome/android/testshell/java/src/org/chromium/chrome/testshell/ChromiumTestShellApplication.java (right): https://codereview.chromium.org/156333002/diff/1610001/chrome/android/testshell/java/src/org/chromium/chrome/testshell/ChromiumTestShellApplication.java#newcode29 chrome/android/testshell/java/src/org/chromium/chrome/testshell/ChromiumTestShellApplication.java:29: "icudtl.dat", It ...
6 years, 10 months ago (2014-02-25 13:52:55 UTC) #37
jungshik at Google
Thank you for the review comments. I've added comments as you suggested. I'll land this ...
6 years, 10 months ago (2014-02-27 00:56:44 UTC) #38
jungshik at Google
The CQ bit was checked by jshin@chromium.org
6 years, 9 months ago (2014-02-27 18:50:00 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jshin@chromium.org/156333002/1650001
6 years, 9 months ago (2014-02-27 18:50:43 UTC) #40
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-02-27 19:10:13 UTC) #41
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=52523
6 years, 9 months ago (2014-02-27 19:10:14 UTC) #42
jungshik at Google
The CQ bit was checked by jshin@chromium.org
6 years, 9 months ago (2014-02-27 19:30:57 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jshin@chromium.org/156333002/1650001
6 years, 9 months ago (2014-02-27 19:33:56 UTC) #44
commit-bot: I haz the power
Change committed as 253938
6 years, 9 months ago (2014-02-27 22:09:06 UTC) #45
jungshik at Google
On 2014/02/27 22:09:06, I haz the power (commit-bot) wrote: > Change committed as 253938 This ...
6 years, 9 months ago (2014-03-05 19:49:17 UTC) #46
jungshik at Google
On 2014/03/05 19:49:17, Jungshik Shin wrote: > On 2014/02/27 22:09:06, I haz the power (commit-bot) ...
6 years, 9 months ago (2014-03-06 18:12:19 UTC) #47
jungshik at Google
The CQ bit was checked by jshin@chromium.org
6 years, 9 months ago (2014-03-06 18:16:34 UTC) #48
jungshik at Google
The CQ bit was unchecked by jshin@chromium.org
6 years, 9 months ago (2014-03-06 18:16:56 UTC) #49
jungshik at Google
The CQ bit was checked by jshin@chromium.org
6 years, 9 months ago (2014-03-07 17:53:40 UTC) #50
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jshin@chromium.org/156333002/1670001
6 years, 9 months ago (2014-03-07 17:55:58 UTC) #51
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-07 19:53:45 UTC) #52
commit-bot: I haz the power
Retried try job too often on win for step(s) compile http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win&number=157114
6 years, 9 months ago (2014-03-07 19:53:46 UTC) #53
jungshik at Google
The CQ bit was checked by jshin@chromium.org
6 years, 9 months ago (2014-03-07 22:21:10 UTC) #54
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jshin@chromium.org/156333002/1670001
6 years, 9 months ago (2014-03-07 22:22:48 UTC) #55
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jshin@chromium.org/156333002/1670001
6 years, 9 months ago (2014-03-08 11:06:32 UTC) #56
commit-bot: I haz the power
6 years, 9 months ago (2014-03-08 12:02:33 UTC) #57
Message was sent while issue was closed.
Change committed as 255762

Powered by Google App Engine
This is Rietveld 408576698