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

Issue 1839803002: Remove net & url small, iOS ICU alternatives, unit tests. (Closed)

Created:
4 years, 8 months ago by kapishnikov
Modified:
4 years, 8 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, jshin+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove net & url small, iOS ICU alternatives, unit tests. 1. Removed |net_small| and |url_small| targets. 2. To keep supporting the small builds, introduced |use_platform_icu_alternatives| boolean flag that indicates whether the net and url targets should be built with ICU alternatives. The default value of the flag is false. 3. Removed |cronet_static_small| target. 4. Renamed 'define' USE_ICU_ALTERNATIVES_ON_ANDROID to USE_PLATFORM_ICU_ALTERNATIVES. 5. Added use_platform_icu_alternatives=1/true to gyp/gn cr_cronet.py. 6. Changed cronet_reduction_proxy component to stop using net & url small. 7. Removed |common_small| template from data_reduction_proxy/core/common 8. Removed |google_apis_small| template from google_apis. 9. Added simplistic ICU alternatives for iOS 10. Fixed linking problem when net_unitests were build with GN (not all websockets tests were excluded when enable_websockets was set to false). 11. Added support for net_unitests for the small net/url variation (there were no tests for it before). 12. Created the list of unit tests that are failing with the current alternative ICU implementations on Android and iOS. Added them to the exclude list. 13. Added new flag 'disable_brotli_filter' which is false by default. Set the flag to true in cr_cronet.py. 14. Converted 'define' USE_PLATFORM_ICU_ALTERNATIVES to build flags. The current number of passing tests: net_with_icu_alternative iOS: 12548 net_with_icu iOS: 14549 net_with_icu_alternative Android: 15000 net_with_icu Android: 15223 url_with_icu_alternative iOS: 49 url_with_icu iOS: 91 url_with_icu_alternative Android: 50 url_with_icu Android: 92 BUG=601172 Committed: https://crrev.com/abe280e7da8b757d8f622cc9c9421880aaa38231 Cr-Commit-Position: refs/heads/master@{#387382}

Patch Set 1 #

Patch Set 2 : Fixed GN on iOS #

Total comments: 18

Patch Set 3 : Addressed Helen's review comments. #

Patch Set 4 : Fixed the lint error #

Total comments: 6

Patch Set 5 : Addressed Helen's comments #

Total comments: 10

Patch Set 6 : Helen's comments & disable_brotli_filter flag #

Patch Set 7 : Got rid of data_reduction_proxy_core_common_small target #

Total comments: 1

Patch Set 8 : Resolved rebase conflicts #

Total comments: 19

Patch Set 9 : Addressed Misha's comments. #

Total comments: 22

Patch Set 10 : Addressed Misha's and Brett's comments, except buildflag_header. #

Patch Set 11 : Converted global 'defines' to local build flags #

Patch Set 12 : Made //net:net_unittests directly depend on //net:features #

Patch Set 13 : Modified user_guide.md to add new arguments to cronet #

Patch Set 14 : Removed cronet_static_small target #

Patch Set 15 : Removed tmp file #

Total comments: 3

Patch Set 16 : Code cleaning #

Total comments: 10

Patch Set 17 : Addressed Brett's comments #

Patch Set 18 : Fixed build failure #

Patch Set 19 : Added direct dependency |net_unittests| => |url:url_features| #

Patch Set 20 : Fixed build when is_nacl is set to 'false' #

Patch Set 21 : Merge conflict resolution #

Patch Set 22 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+750 lines, -595 lines) Patch
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 2 chunks +8 lines, -0 lines 0 comments Download
M components/cronet.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 4 chunks +8 lines, -28 lines 0 comments Download
M components/cronet/android/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 5 chunks +10 lines, -28 lines 0 comments Download
M components/cronet/android/cronet_library_loader.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +5 lines, -3 lines 0 comments Download
M components/cronet/cronet_static.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +4 lines, -3 lines 0 comments Download
M components/cronet/tools/cr_cronet.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +4 lines, -2 lines 0 comments Download
M components/data_reduction_proxy.gypi View 1 2 3 4 5 6 2 chunks +3 lines, -19 lines 0 comments Download
M components/data_reduction_proxy/core/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -4 lines 0 comments Download
M components/data_reduction_proxy/core/common/BUILD.gn View 1 chunk +0 lines, -9 lines 0 comments Download
M google_apis/BUILD.gn View 1 chunk +0 lines, -8 lines 0 comments Download
M net/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 11 chunks +355 lines, -334 lines 0 comments Download
M net/android/net_jni_registrar.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +3 lines, -2 lines 0 comments Download
A net/base/net_string_util_icu_alternatives_ios.mm View 1 2 1 chunk +44 lines, -0 lines 0 comments Download
M net/net.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 5 chunks +83 lines, -35 lines 0 comments Download
M net/net_common.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +2 lines, -1 line 0 comments Download
M net/test/run_all_unittests.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +3 lines, -2 lines 0 comments Download
M tools/mb/mb_config.pyl View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +4 lines, -2 lines 0 comments Download
M url/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +108 lines, -81 lines 0 comments Download
M url/android/url_jni_registrar.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +4 lines, -3 lines 0 comments Download
A url/features.gni View 1 2 3 4 5 6 7 8 9 1 chunk +11 lines, -0 lines 0 comments Download
M url/url.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 5 chunks +61 lines, -31 lines 0 comments Download
A url/url_canon_icu_alternatives_ios.mm View 1 2 1 chunk +26 lines, -0 lines 0 comments Download

Messages

Total messages: 42 (11 generated)
kapishnikov
bengr@chromium.org: Please review changes in mef@chromium.org: Please review changes in xunjieli@chromium.org: Please review changes in ...
4 years, 8 months ago (2016-03-28 22:27:46 UTC) #2
kapishnikov
On 2016/03/28 22:27:46, kapishnikov wrote: > mailto:bengr@chromium.org: Please review changes in > > mailto:mef@chromium.org: Please ...
4 years, 8 months ago (2016-03-31 13:58:53 UTC) #5
xunjieli
https://codereview.chromium.org/1839803002/diff/20001/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/1839803002/diff/20001/build/common.gypi#newcode616 build/common.gypi:616: 'use_icu_alternatives%': 0, the "third-party ICU implementation" is a little ...
4 years, 8 months ago (2016-03-31 13:59:41 UTC) #6
kapishnikov
https://codereview.chromium.org/1839803002/diff/20001/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/1839803002/diff/20001/build/common.gypi#newcode616 build/common.gypi:616: 'use_icu_alternatives%': 0, On 2016/03/31 13:59:40, xunjieli wrote: > the ...
4 years, 8 months ago (2016-03-31 16:25:53 UTC) #7
xunjieli
https://codereview.chromium.org/1839803002/diff/20001/components/data_reduction_proxy.gypi File components/data_reduction_proxy.gypi (right): https://codereview.chromium.org/1839803002/diff/20001/components/data_reduction_proxy.gypi#newcode85 components/data_reduction_proxy.gypi:85: # Small versions of libraries for Cronet. On 2016/03/31 ...
4 years, 8 months ago (2016-03-31 19:17:54 UTC) #8
kapishnikov
https://codereview.chromium.org/1839803002/diff/20001/net/BUILD.gn File net/BUILD.gn (right): https://codereview.chromium.org/1839803002/diff/20001/net/BUILD.gn#newcode459 net/BUILD.gn:459: # Use ICU alternative on Android & Disable Brotli ...
4 years, 8 months ago (2016-03-31 21:08:36 UTC) #9
xunjieli
https://codereview.chromium.org/1839803002/diff/20001/net/BUILD.gn File net/BUILD.gn (right): https://codereview.chromium.org/1839803002/diff/20001/net/BUILD.gn#newcode459 net/BUILD.gn:459: # Use ICU alternative on Android & Disable Brotli ...
4 years, 8 months ago (2016-04-01 14:16:44 UTC) #10
bengr
Is there a bug for this CL? https://codereview.chromium.org/1839803002/diff/80001/components/data_reduction_proxy.gypi File components/data_reduction_proxy.gypi (right): https://codereview.chromium.org/1839803002/diff/80001/components/data_reduction_proxy.gypi#newcode90 components/data_reduction_proxy.gypi:90: 'target_name': 'data_reduction_proxy_core_browser_small', ...
4 years, 8 months ago (2016-04-01 17:46:06 UTC) #11
kapishnikov
https://codereview.chromium.org/1839803002/diff/80001/components/data_reduction_proxy.gypi File components/data_reduction_proxy.gypi (right): https://codereview.chromium.org/1839803002/diff/80001/components/data_reduction_proxy.gypi#newcode90 components/data_reduction_proxy.gypi:90: 'target_name': 'data_reduction_proxy_core_browser_small', On 2016/04/01 17:46:06, bengr wrote: > Do ...
4 years, 8 months ago (2016-04-01 18:55:01 UTC) #12
xunjieli
lgtm mod the comment below. + eustas: please review the additional disable brotli flag. https://codereview.chromium.org/1839803002/diff/120001/url/url.gyp ...
4 years, 8 months ago (2016-04-01 19:14:46 UTC) #14
mef
looks pretty good! https://codereview.chromium.org/1839803002/diff/140001/components/cronet.gypi File components/cronet.gypi (right): https://codereview.chromium.org/1839803002/diff/140001/components/cronet.gypi#newcode179 components/cronet.gypi:179: 'target_name': 'cronet_static_small', do we still need ...
4 years, 8 months ago (2016-04-01 20:42:50 UTC) #15
mef
On 2016/04/01 20:42:50, mef wrote: > looks pretty good! > > https://codereview.chromium.org/1839803002/diff/140001/components/cronet.gypi > File components/cronet.gypi ...
4 years, 8 months ago (2016-04-03 18:42:06 UTC) #16
eustas
I've thought that we are trying to avoid global build flags: https://codereview.chromium.org/1431723002/#msg61 +Ryan
4 years, 8 months ago (2016-04-04 11:07:05 UTC) #18
Ryan Sleevi
On 2016/04/04 11:07:05, eustas wrote: > I've thought that we are trying to avoid global ...
4 years, 8 months ago (2016-04-04 17:38:18 UTC) #19
kapishnikov
https://codereview.chromium.org/1839803002/diff/140001/components/cronet.gypi File components/cronet.gypi (right): https://codereview.chromium.org/1839803002/diff/140001/components/cronet.gypi#newcode179 components/cronet.gypi:179: 'target_name': 'cronet_static_small', On 2016/04/01 20:42:49, mef wrote: > do ...
4 years, 8 months ago (2016-04-04 20:17:27 UTC) #20
kapishnikov
On 2016/04/04 17:38:18, Ryan Sleevi wrote: > On 2016/04/04 11:07:05, eustas wrote: > > I've ...
4 years, 8 months ago (2016-04-04 20:55:49 UTC) #22
mef
https://codereview.chromium.org/1839803002/diff/160001/components/cronet/android/BUILD.gn File components/cronet/android/BUILD.gn (right): https://codereview.chromium.org/1839803002/diff/160001/components/cronet/android/BUILD.gn#newcode200 components/cronet/android/BUILD.gn:200: "//components/data_reduction_proxy/core/common:common_small", it seems that common_small target is no longer ...
4 years, 8 months ago (2016-04-04 22:25:44 UTC) #23
brettw
https://codereview.chromium.org/1839803002/diff/160001/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/1839803002/diff/160001/build/common.gypi#newcode3037 build/common.gypi:3037: 'defines': ['USE_PLATFORM_ICU_ALTERNATIVES=1'], Instead of this and the place(s) you ...
4 years, 8 months ago (2016-04-04 22:54:11 UTC) #24
kapishnikov
https://codereview.chromium.org/1839803002/diff/160001/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/1839803002/diff/160001/build/common.gypi#newcode3037 build/common.gypi:3037: 'defines': ['USE_PLATFORM_ICU_ALTERNATIVES=1'], On 2016/04/04 22:54:11, brettw wrote: > Instead ...
4 years, 8 months ago (2016-04-05 15:22:04 UTC) #25
kapishnikov
https://codereview.chromium.org/1839803002/diff/160001/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/1839803002/diff/160001/build/common.gypi#newcode3037 build/common.gypi:3037: 'defines': ['USE_PLATFORM_ICU_ALTERNATIVES=1'], On 2016/04/05 15:22:04, kapishnikov wrote: > On ...
4 years, 8 months ago (2016-04-05 22:10:15 UTC) #26
mef
lgtm, I think this is much cleaner withoud net_small et al. https://codereview.chromium.org/1839803002/diff/280001/url/BUILD.gn File url/BUILD.gn (right): ...
4 years, 8 months ago (2016-04-08 13:33:15 UTC) #28
kapishnikov
https://codereview.chromium.org/1839803002/diff/280001/url/BUILD.gn File url/BUILD.gn (right): https://codereview.chromium.org/1839803002/diff/280001/url/BUILD.gn#newcode136 url/BUILD.gn:136: deps = [] On 2016/04/08 13:33:15, mef wrote: > ...
4 years, 8 months ago (2016-04-08 13:54:32 UTC) #29
kapishnikov
https://codereview.chromium.org/1839803002/diff/280001/url/BUILD.gn File url/BUILD.gn (right): https://codereview.chromium.org/1839803002/diff/280001/url/BUILD.gn#newcode136 url/BUILD.gn:136: deps = [] On 2016/04/08 13:54:31, kapishnikov wrote: > ...
4 years, 8 months ago (2016-04-08 14:20:28 UTC) #30
mef
On 2016/04/08 14:20:28, kapishnikov wrote: > https://codereview.chromium.org/1839803002/diff/280001/url/BUILD.gn > File url/BUILD.gn (right): > > https://codereview.chromium.org/1839803002/diff/280001/url/BUILD.gn#newcode136 > ...
4 years, 8 months ago (2016-04-08 16:16:29 UTC) #31
brettw
This is looking great! Sorry for being slow... https://codereview.chromium.org/1839803002/diff/300001/net/BUILD.gn File net/BUILD.gn (left): https://codereview.chromium.org/1839803002/diff/300001/net/BUILD.gn#oldcode94 net/BUILD.gn:94: net_shared_sources ...
4 years, 8 months ago (2016-04-08 21:40:06 UTC) #32
kapishnikov
Hi Brett, Thanks for the review. Your suggestions have been implemented. - Andrei https://codereview.chromium.org/1839803002/diff/300001/net/BUILD.gn File ...
4 years, 8 months ago (2016-04-11 19:58:48 UTC) #33
kapishnikov
A friendly ping. This CL waits for the OWNER approval. bengr: could you OWNER-approve components/data_reduction_proxy* ...
4 years, 8 months ago (2016-04-13 13:43:25 UTC) #34
brettw
lgtm
4 years, 8 months ago (2016-04-14 18:00:58 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1839803002/420001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1839803002/420001
4 years, 8 months ago (2016-04-14 18:04:42 UTC) #38
commit-bot: I haz the power
Committed patchset #22 (id:420001)
4 years, 8 months ago (2016-04-14 19:07:32 UTC) #40
commit-bot: I haz the power
4 years, 8 months ago (2016-04-14 19:10:14 UTC) #42
Message was sent while issue was closed.
Patchset 22 (id:??) landed as
https://crrev.com/abe280e7da8b757d8f622cc9c9421880aaa38231
Cr-Commit-Position: refs/heads/master@{#387382}

Powered by Google App Engine
This is Rietveld 408576698