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

Issue 257673002: Make it possible to build url/ without ICU on android. (Closed)

Created:
6 years, 8 months ago by mmenke
Modified:
6 years, 7 months ago
Reviewers:
brettw, mef
CC:
chromium-reviews, jshin+watch_chromium.org
Visibility:
Public.

Description

Make it possible to build url/ without ICU on android. This is needed to reduce binary size of net/ when build as a library. BUG=362608 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=268740

Patch Set 1 #

Patch Set 2 : Cleanup, add DEPS #

Patch Set 3 : JNI Registration #

Patch Set 4 : Fix build #

Patch Set 5 : Remove extra header #

Patch Set 6 : Fix GN/GYP #

Total comments: 19

Patch Set 7 : Response to comments #

Patch Set 8 : Fix gyp #

Patch Set 9 : Remove unused base_i18n deps, add IDNA 2003 comment. #

Patch Set 10 : Change how failures are handled #

Total comments: 6

Patch Set 11 : Add arg/define to GN #

Patch Set 12 : Rename variable/define #

Patch Set 13 : Missed a spot #

Unified diffs Side-by-side diffs Delta from patch set Stats (+461 lines, -115 lines) Patch
M build/common.gypi View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +8 lines, -0 lines 0 comments Download
M components/cronet/android/cronet_jni.cc View 1 2 3 4 5 1 chunk +6 lines, -5 lines 0 comments Download
M net/test/run_all_unittests.cc View 1 2 3 4 5 2 chunks +12 lines, -2 lines 0 comments Download
M url/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +42 lines, -1 line 0 comments Download
A url/DEPS View 1 2 1 chunk +13 lines, -0 lines 0 comments Download
A url/android/java/src/org/chromium/url/IDNStringUtil.java View 1 2 3 4 5 6 7 8 9 1 chunk +33 lines, -0 lines 0 comments Download
A url/android/url_jni_registrar.h View 1 2 1 chunk +21 lines, -0 lines 0 comments Download
A url/android/url_jni_registrar.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +24 lines, -0 lines 0 comments Download
M url/url.gyp View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +61 lines, -1 line 0 comments Download
A url/url_canon_icu_alternatives_android.h View 1 2 3 4 5 6 1 chunk +18 lines, -0 lines 0 comments Download
A url/url_canon_icu_alternatives_android.cc View 1 2 3 4 5 6 7 8 9 1 chunk +41 lines, -0 lines 0 comments Download
A url/url_canon_icu_unittest.cc View 1 2 1 chunk +167 lines, -0 lines 0 comments Download
M url/url_canon_unittest.cc View 1 2 5 chunks +13 lines, -106 lines 0 comments Download
M url/url_srcs.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
mmenke
Fix includes
6 years, 7 months ago (2014-04-30 16:34:50 UTC) #1
mmenke
Remove extra header
6 years, 7 months ago (2014-04-30 18:56:32 UTC) #2
mmenke
mef: PTAL. This depends on https://codereview.chromium.org/250233002/ Not sure if I should be calling url::android::RegisterJni from ...
6 years, 7 months ago (2014-05-01 19:15:01 UTC) #3
mef
I think that the code that supports USE_ICU_ALTERNATIVES should be calling the new registration function ...
6 years, 7 months ago (2014-05-01 19:45:14 UTC) #4
mmenke
Thanks for the feedback! https://codereview.chromium.org/257673002/diff/330001/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/257673002/diff/330001/build/common.gypi#newcode488 build/common.gypi:488: 'use_icu_alternatives%': 0, On 2014/05/01 19:45:15, ...
6 years, 7 months ago (2014-05-01 21:01:33 UTC) #5
mef
lgtm https://codereview.chromium.org/257673002/diff/330001/net/test/run_all_unittests.cc File net/test/run_all_unittests.cc (right): https://codereview.chromium.org/257673002/diff/330001/net/test/run_all_unittests.cc#newcode37 net/test/run_all_unittests.cc:37: {"UrlAndroid", url::android::RegisterJni}, On 2014/05/01 21:01:33, mmenke wrote: > ...
6 years, 7 months ago (2014-05-02 15:10:48 UTC) #6
mmenke
Thanks for the feedback! https://codereview.chromium.org/257673002/diff/330001/url/url.gyp File url/url.gyp (right): https://codereview.chromium.org/257673002/diff/330001/url/url.gyp#newcode106 url/url.gyp:106: ['use_icu_alternatives == 1', { On ...
6 years, 7 months ago (2014-05-02 15:30:48 UTC) #7
mmenke
[+brettw]: PTAL, thanks! url_canon_icu_unittest.cc is split off from url_canon_unittest.cc, but I could not get git ...
6 years, 7 months ago (2014-05-02 15:33:06 UTC) #8
brettw
https://codereview.chromium.org/257673002/diff/450001/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/257673002/diff/450001/build/common.gypi#newcode488 build/common.gypi:488: 'use_icu_alternatives%': 0, Who sets this? Can we just key ...
6 years, 7 months ago (2014-05-02 23:51:02 UTC) #9
mmenke
https://codereview.chromium.org/257673002/diff/450001/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/257673002/diff/450001/build/common.gypi#newcode488 build/common.gypi:488: 'use_icu_alternatives%': 0, On 2014/05/02 23:51:02, brettw wrote: > Who ...
6 years, 7 months ago (2014-05-03 01:15:49 UTC) #10
mmenke
https://codereview.chromium.org/257673002/diff/450001/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/257673002/diff/450001/build/common.gypi#newcode488 build/common.gypi:488: 'use_icu_alternatives%': 0, On 2014/05/03 01:15:50, mmenke wrote: > On ...
6 years, 7 months ago (2014-05-03 01:17:47 UTC) #11
brettw
On 2014/05/03 01:15:49, mmenke wrote: > I hadn't realized gn wasn't yet being used or ...
6 years, 7 months ago (2014-05-05 18:07:24 UTC) #12
mmenke
Thanks for all the information! We'll need the use_icu_alternatives variable in net/ as well, in ...
6 years, 7 months ago (2014-05-06 14:54:31 UTC) #13
brettw
On 2014/05/06 14:54:31, mmenke wrote: > Thanks for all the information! > > We'll need ...
6 years, 7 months ago (2014-05-06 17:09:53 UTC) #14
brettw
LGTM, I didn't review the details of any of the Android code.
6 years, 7 months ago (2014-05-06 17:12:34 UTC) #15
mmenke
On 2014/05/06 17:12:34, brettw wrote: > LGTM, I didn't review the details of any of ...
6 years, 7 months ago (2014-05-06 18:09:25 UTC) #16
mmenke
The CQ bit was checked by mmenke@chromium.org
6 years, 7 months ago (2014-05-06 18:09:31 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mmenke@chromium.org/257673002/530001
6 years, 7 months ago (2014-05-06 18:11:27 UTC) #18
commit-bot: I haz the power
Change committed as 268740
6 years, 7 months ago (2014-05-07 14:05:49 UTC) #19
mmenke
6 years, 7 months ago (2014-05-07 16:22:17 UTC) #20
Message was sent while issue was closed.
On 2014/05/07 14:05:49, I haz the power (commit-bot) wrote:
> Change committed as 268740

Brett:  It doesn't look like net/BUILD.gn is getting
use_icu_alternatives_on_android variable.

gn try result (Note that it's using base revision 268770, which includes this
CL):
http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_gn_rel...

CL:  https://codereview.chromium.org/266053002/

Powered by Google App Engine
This is Rietveld 408576698