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

Issue 1523433002: Remove support for a URLRequest having a NULL Delegate. (Closed)

Created:
5 years ago by mmenke
Modified:
5 years ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, kinuko+fileapi, nhiroki, tzik
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove support for a URLRequest having a NULL Delegate. This could be used to prevent it from invoking any callbacks, but this codepath was untested, and is only used by one consumer in production codes and a couple random tests, which can all easily be modified not to depend on it. BUG=569055 TBR=marq@chromium.org Committed: https://crrev.com/8e329d672df2c725b3add82a186f30a1241eee01 Cr-Commit-Position: refs/heads/master@{#365909}

Patch Set 1 #

Patch Set 2 : Add DCHECK #

Patch Set 3 : Fix test #

Patch Set 4 : Fix iOS #

Total comments: 8

Patch Set 5 : Response to comments #

Patch Set 6 : Merge, remove if in file_writer_delegate #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -62 lines) Patch
M content/browser/appcache/appcache_storage_impl_unittest.cc View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M ios/web/net/request_tracker_impl_unittest.mm View 1 2 3 4 chunks +20 lines, -3 lines 0 comments Download
M net/url_request/url_request.h View 1 2 3 4 4 chunks +7 lines, -9 lines 0 comments Download
M net/url_request/url_request.cc View 1 7 chunks +24 lines, -26 lines 0 comments Download
M net/url_request/url_request_context.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M net/url_request/url_request_job.cc View 4 chunks +2 lines, -10 lines 0 comments Download
M storage/browser/fileapi/file_writer_delegate.cc View 1 2 3 4 5 2 chunks +4 lines, -9 lines 0 comments Download

Messages

Total messages: 29 (10 generated)
mmenke
[xunjieli]: Please review everything. [michaeln]: Please review appcache. [stuartmorgan]: Please review iOS. [tzik]: Please review ...
5 years ago (2015-12-14 16:58:23 UTC) #6
mmenke
https://codereview.chromium.org/1523433002/diff/100001/content/browser/appcache/appcache_storage_impl_unittest.cc File content/browser/appcache/appcache_storage_impl_unittest.cc (right): https://codereview.chromium.org/1523433002/diff/100001/content/browser/appcache/appcache_storage_impl_unittest.cc#newcode394 content/browser/appcache/appcache_storage_impl_unittest.cc:394: AppCacheStorageImplTest() { request_delegate_.set_quit_on_complete(false); } Note that I used a ...
5 years ago (2015-12-14 17:02:30 UTC) #7
xunjieli
code is a lot easier to understand with the CL! https://codereview.chromium.org/1523433002/diff/100001/net/url_request/url_request.h File net/url_request/url_request.h (right): https://codereview.chromium.org/1523433002/diff/100001/net/url_request/url_request.h#newcode528 ...
5 years ago (2015-12-14 20:12:08 UTC) #8
mmenke
Thanks! https://codereview.chromium.org/1523433002/diff/100001/net/url_request/url_request.h File net/url_request/url_request.h (right): https://codereview.chromium.org/1523433002/diff/100001/net/url_request/url_request.h#newcode528 net/url_request/url_request.h:528: // must have a delegate set before this ...
5 years ago (2015-12-14 20:24:11 UTC) #9
michaeln
https://codereview.chromium.org/1523433002/diff/100001/storage/browser/fileapi/file_writer_delegate.cc File storage/browser/fileapi/file_writer_delegate.cc (right): https://codereview.chromium.org/1523433002/diff/100001/storage/browser/fileapi/file_writer_delegate.cc#newcode160 storage/browser/fileapi/file_writer_delegate.cc:160: Read(); Not sure? I think you may need a ...
5 years ago (2015-12-14 20:27:27 UTC) #10
mmenke
https://codereview.chromium.org/1523433002/diff/100001/storage/browser/fileapi/file_writer_delegate.cc File storage/browser/fileapi/file_writer_delegate.cc (right): https://codereview.chromium.org/1523433002/diff/100001/storage/browser/fileapi/file_writer_delegate.cc#newcode160 storage/browser/fileapi/file_writer_delegate.cc:160: Read(); On 2015/12/14 20:27:26, michaeln wrote: > Not sure? ...
5 years ago (2015-12-14 20:38:23 UTC) #11
michaeln
https://codereview.chromium.org/1523433002/diff/100001/storage/browser/fileapi/file_writer_delegate.cc File storage/browser/fileapi/file_writer_delegate.cc (right): https://codereview.chromium.org/1523433002/diff/100001/storage/browser/fileapi/file_writer_delegate.cc#newcode160 storage/browser/fileapi/file_writer_delegate.cc:160: Read(); On 2015/12/14 20:38:23, mmenke wrote: > On 2015/12/14 ...
5 years ago (2015-12-14 20:58:30 UTC) #12
mmenke
On 2015/12/14 20:58:30, michaeln wrote: > https://codereview.chromium.org/1523433002/diff/100001/storage/browser/fileapi/file_writer_delegate.cc > File storage/browser/fileapi/file_writer_delegate.cc (right): > > https://codereview.chromium.org/1523433002/diff/100001/storage/browser/fileapi/file_writer_delegate.cc#newcode160 > ...
5 years ago (2015-12-14 21:15:56 UTC) #13
michaeln
lgtm, sorry for the distracting questions > It looks like OnFlushed doesn't call into request_, ...
5 years ago (2015-12-14 22:57:43 UTC) #14
mmenke
On 2015/12/14 22:57:43, michaeln wrote: > lgtm, sorry for the distracting questions Nothing to apologize ...
5 years ago (2015-12-14 22:59:52 UTC) #15
tzik
fileapi lgtm
5 years ago (2015-12-15 05:58:03 UTC) #16
xunjieli
lgtm! was unable to find other things to comment on :)
5 years ago (2015-12-15 14:42:21 UTC) #17
mmenke
[+marq]: Please review iOS.
5 years ago (2015-12-16 20:39:42 UTC) #19
mmenke
On 2015/12/16 20:39:42, mmenke wrote: > [+marq]: Please review iOS. Just going to TBR it. ...
5 years ago (2015-12-17 20:36:30 UTC) #20
mmenke
On 2015/12/17 20:36:30, mmenke wrote: > On 2015/12/16 20:39:42, mmenke wrote: > > [+marq]: Please ...
5 years ago (2015-12-17 20:37:12 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1523433002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1523433002/140001
5 years ago (2015-12-17 20:39:29 UTC) #24
commit-bot: I haz the power
Committed patchset #6 (id:140001)
5 years ago (2015-12-17 22:16:58 UTC) #26
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/8e329d672df2c725b3add82a186f30a1241eee01 Cr-Commit-Position: refs/heads/master@{#365909}
5 years ago (2015-12-17 22:18:30 UTC) #28
marq (ping after 24h)
5 years ago (2015-12-18 08:18:19 UTC) #29
Message was sent while issue was closed.
LGTM.

Powered by Google App Engine
This is Rietveld 408576698