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

Issue 747773002: Upstream "nsurl_util.{h,mm}" from Chrome on iOS repository. (Closed)

Created:
6 years, 1 month ago by erikchen
Modified:
6 years ago
Reviewers:
droger, mmenke
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Upstream "nsurl_util.{h,mm}" from Chrome on iOS repository. I created the new directory net/base/mac/ to hold shared files between OSX and iOS. The logic in nsurl_util was mostly duplicated code, so I replaced the bulk of the code with a single new function EscapeNSURLPrecursor. BUG= Committed: https://crrev.com/006a7cfbba2e1c415c9b0d63767a73f14815e27e Cr-Commit-Position: refs/heads/master@{#306690}

Patch Set 1 : Original files from iOS repository, moved to net/base/mac/ and renamed. #

Patch Set 2 : Updated files to reflect upstreaming. Diff against patch set 1. #

Total comments: 8

Patch Set 3 : Comments from mmenke. #

Total comments: 8

Patch Set 4 : Comments from mmenke, round two. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+360 lines, -0 lines) Patch
M net/BUILD.gn View 1 2 chunks +8 lines, -0 lines 0 comments Download
M net/base/escape.h View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M net/base/escape.cc View 1 2 3 2 chunks +14 lines, -0 lines 0 comments Download
A net/base/mac/README View 1 1 chunk +2 lines, -0 lines 0 comments Download
A net/base/mac/url_conversions.h View 1 2 1 chunk +27 lines, -0 lines 0 comments Download
A net/base/mac/url_conversions.mm View 1 2 3 1 chunk +56 lines, -0 lines 0 comments Download
A net/base/mac/url_conversions_unittest.mm View 1 2 1 chunk +229 lines, -0 lines 0 comments Download
M net/net.gyp View 1 2 chunks +11 lines, -0 lines 0 comments Download
M net/net.gypi View 1 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (10 generated)
erikchen
droger: Please review.
6 years, 1 month ago (2014-11-21 02:11:18 UTC) #3
droger
lgtm, but I am not familiar with net/ architecture, lets add a net OWNER. +mmenke ...
6 years, 1 month ago (2014-11-21 10:49:39 UTC) #5
mmenke
https://codereview.chromium.org/747773002/diff/40001/net/base/mac/url_conversions.mm File net/base/mac/url_conversions.mm (right): https://codereview.chromium.org/747773002/diff/40001/net/base/mac/url_conversions.mm#newcode59 net/base/mac/url_conversions.mm:59: // pct-encode them for RFC 1738. We do not ...
6 years, 1 month ago (2014-11-21 15:48:56 UTC) #6
erikchen
https://codereview.chromium.org/747773002/diff/40001/net/base/mac/url_conversions.mm File net/base/mac/url_conversions.mm (right): https://codereview.chromium.org/747773002/diff/40001/net/base/mac/url_conversions.mm#newcode59 net/base/mac/url_conversions.mm:59: // pct-encode them for RFC 1738. On 2014/11/21 15:48:55, ...
6 years, 1 month ago (2014-11-22 00:11:39 UTC) #7
mmenke
https://codereview.chromium.org/747773002/diff/40001/net/base/mac/url_conversions.mm File net/base/mac/url_conversions.mm (right): https://codereview.chromium.org/747773002/diff/40001/net/base/mac/url_conversions.mm#newcode59 net/base/mac/url_conversions.mm:59: // pct-encode them for RFC 1738. On 2014/11/22 00:11:39, ...
6 years, 1 month ago (2014-11-22 01:04:13 UTC) #8
erikchen
On 2014/11/22 01:04:13, mmenke wrote: > https://codereview.chromium.org/747773002/diff/40001/net/base/mac/url_conversions.mm > File net/base/mac/url_conversions.mm (right): > > https://codereview.chromium.org/747773002/diff/40001/net/base/mac/url_conversions.mm#newcode59 > ...
6 years, 1 month ago (2014-11-22 01:58:15 UTC) #9
mmenke
https://codereview.chromium.org/747773002/diff/40001/net/base/mac/url_conversions_unittest.mm File net/base/mac/url_conversions_unittest.mm (right): https://codereview.chromium.org/747773002/diff/40001/net/base/mac/url_conversions_unittest.mm#newcode67 net/base/mac/url_conversions_unittest.mm:67: @"http://www.mysite.com/test?test#test?test", Oh...if the extra logic is only needed for ...
6 years, 1 month ago (2014-11-22 01:59:04 UTC) #10
erikchen
On 2014/11/22 01:59:04, mmenke wrote: > https://codereview.chromium.org/747773002/diff/40001/net/base/mac/url_conversions_unittest.mm > File net/base/mac/url_conversions_unittest.mm (right): > > https://codereview.chromium.org/747773002/diff/40001/net/base/mac/url_conversions_unittest.mm#newcode67 > ...
6 years, 1 month ago (2014-11-22 02:11:36 UTC) #11
mmenke
On 2014/11/22 02:11:36, erikchen wrote: > On 2014/11/22 01:59:04, mmenke wrote: > > > https://codereview.chromium.org/747773002/diff/40001/net/base/mac/url_conversions_unittest.mm ...
6 years, 1 month ago (2014-11-22 02:24:54 UTC) #12
mmenke
On 2014/11/22 02:24:54, mmenke wrote: > On 2014/11/22 02:11:36, erikchen wrote: > > On 2014/11/22 ...
6 years ago (2014-11-24 15:53:49 UTC) #13
erikchen
On 2014/11/24 15:53:49, mmenke wrote: > On 2014/11/22 02:24:54, mmenke wrote: > > On 2014/11/22 ...
6 years ago (2014-11-26 00:42:22 UTC) #14
mmenke
On 2014/11/26 00:42:22, erikchen wrote: > On 2014/11/24 15:53:49, mmenke wrote: > > On 2014/11/22 ...
6 years ago (2014-11-26 14:24:02 UTC) #15
erikchen
mmenke: PTAL I followed your suggestions, and the result is much cleaner. Thanks!
6 years ago (2014-12-02 21:19:39 UTC) #20
erikchen
https://codereview.chromium.org/747773002/diff/40001/net/base/mac/url_conversions.mm File net/base/mac/url_conversions.mm (right): https://codereview.chromium.org/747773002/diff/40001/net/base/mac/url_conversions.mm#newcode41 net/base/mac/url_conversions.mm:41: #if defined(OS_IOS) On 2014/11/21 10:49:39, droger wrote: > You ...
6 years ago (2014-12-02 21:19:57 UTC) #21
mmenke
LGTM, modulo concerns about leaks. https://codereview.chromium.org/747773002/diff/140001/net/base/escape.h File net/base/escape.h (right): https://codereview.chromium.org/747773002/diff/140001/net/base/escape.h#newcode35 net/base/escape.h:35: NET_EXPORT std::string EscapeNSURLPrecursor(const std::string& ...
6 years ago (2014-12-03 15:30:13 UTC) #22
droger
https://codereview.chromium.org/747773002/diff/140001/net/base/mac/url_conversions.mm File net/base/mac/url_conversions.mm (right): https://codereview.chromium.org/747773002/diff/140001/net/base/mac/url_conversions.mm#newcode47 net/base/mac/url_conversions.mm:47: return [NSURL URLWithString:escaped_url_string]; On 2014/12/03 15:30:12, mmenke wrote: > ...
6 years ago (2014-12-03 15:39:51 UTC) #23
erikchen
https://codereview.chromium.org/747773002/diff/140001/net/base/escape.h File net/base/escape.h (right): https://codereview.chromium.org/747773002/diff/140001/net/base/escape.h#newcode35 net/base/escape.h:35: NET_EXPORT std::string EscapeNSURLPrecursor(const std::string& precursor); On 2014/12/03 15:30:12, mmenke ...
6 years ago (2014-12-03 18:14:01 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/747773002/160001
6 years ago (2014-12-03 18:15:24 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_tests_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_dbg_tests_recipe/builds/34004)
6 years ago (2014-12-03 20:07:18 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/747773002/160001
6 years ago (2014-12-03 21:29:53 UTC) #30
commit-bot: I haz the power
Committed patchset #4 (id:160001)
6 years ago (2014-12-03 22:27:19 UTC) #31
commit-bot: I haz the power
6 years ago (2014-12-03 22:28:50 UTC) #32
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/006a7cfbba2e1c415c9b0d63767a73f14815e27e
Cr-Commit-Position: refs/heads/master@{#306690}

Powered by Google App Engine
This is Rietveld 408576698