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

Issue 1232113002: Prevent URLRequestRedirectJob from doing async execution (Closed)

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

Description

Prevent URLRequestRedirectJob from doing async execution when request is already canceled and job is killed. BUG=508900, 503306 Committed: https://crrev.com/cd904b5cd82adca2fb432e37da4302c67d2b4c5d Cr-Commit-Position: refs/heads/master@{#340298}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Add unittest (quite artificial) #

Total comments: 2

Patch Set 3 : Override Kill() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -0 lines) Patch
M net/url_request/url_request_redirect_job.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M net/url_request/url_request_redirect_job.cc View 1 2 2 chunks +8 lines, -0 lines 0 comments Download
M net/url_request/url_request_unittest.cc View 1 2 1 chunk +22 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (6 generated)
alexanderk
5 years, 5 months ago (2015-07-10 11:59:30 UTC) #1
mmenke
Thanks for this! https://codereview.chromium.org/1232113002/diff/1/net/url_request/url_request_redirect_job.cc File net/url_request/url_request_redirect_job.cc (right): https://codereview.chromium.org/1232113002/diff/1/net/url_request/url_request_redirect_job.cc#newcode86 net/url_request/url_request_redirect_job.cc:86: return; Instead of this, I think ...
5 years, 5 months ago (2015-07-13 21:14:17 UTC) #3
alexanderk
https://codereview.chromium.org/1232113002/diff/1/net/url_request/url_request_redirect_job.cc File net/url_request/url_request_redirect_job.cc (right): https://codereview.chromium.org/1232113002/diff/1/net/url_request/url_request_redirect_job.cc#newcode86 net/url_request/url_request_redirect_job.cc:86: return; On 2015/07/13 21:14:17, mmenke wrote: > Also, we ...
5 years, 5 months ago (2015-07-16 09:48:56 UTC) #4
mmenke
On 2015/07/16 09:48:56, alexanderk wrote: > https://codereview.chromium.org/1232113002/diff/1/net/url_request/url_request_redirect_job.cc > File net/url_request/url_request_redirect_job.cc (right): > > https://codereview.chromium.org/1232113002/diff/1/net/url_request/url_request_redirect_job.cc#newcode86 > ...
5 years, 5 months ago (2015-07-16 12:23:02 UTC) #5
mmenke
https://codereview.chromium.org/1232113002/diff/1/net/url_request/url_request_redirect_job.cc File net/url_request/url_request_redirect_job.cc (right): https://codereview.chromium.org/1232113002/diff/1/net/url_request/url_request_redirect_job.cc#newcode86 net/url_request/url_request_redirect_job.cc:86: return; On 2015/07/16 09:48:56, alexanderk wrote: > On 2015/07/13 ...
5 years, 5 months ago (2015-07-16 15:26:14 UTC) #6
mmenke
Here's my suggested test: TEST_F(URLRequestTest, URLRequestRedirectJobCancelTest) { TestDelegate d; scoped_ptr<URLRequest> req(default_context_.CreateRequest( GURL("http://not-a-real-domain/"), DEFAULT_PRIORITY, &d)); URLRequestRedirectJob* ...
5 years, 5 months ago (2015-07-16 17:58:32 UTC) #7
alexanderk
On 2015/07/16 17:58:32, mmenke wrote: > Here's my suggested test: > > TEST_F(URLRequestTest, URLRequestRedirectJobCancelTest) { ...
5 years, 5 months ago (2015-07-20 11:55:18 UTC) #8
mmenke
On 2015/07/20 11:55:18, alexanderk wrote: > On 2015/07/16 17:58:32, mmenke wrote: > > Here's my ...
5 years, 5 months ago (2015-07-20 15:31:08 UTC) #9
mmenke
Sorry, didn't notice you'd uploaded a new CL. You should post a message when you ...
5 years, 5 months ago (2015-07-22 19:03:56 UTC) #10
mmenke
https://codereview.chromium.org/1232113002/diff/20001/net/url_request/url_request_unittest.cc File net/url_request/url_request_unittest.cc (right): https://codereview.chromium.org/1232113002/diff/20001/net/url_request/url_request_unittest.cc#newcode9216 net/url_request/url_request_unittest.cc:9216: // See http://crbug.com/508900 nit: Method descriptions should go before ...
5 years, 5 months ago (2015-07-22 19:05:05 UTC) #11
alexanderk
On 2015/07/22 19:03:56, mmenke wrote: > Sorry, didn't notice you'd uploaded a new CL. You ...
5 years, 5 months ago (2015-07-23 08:07:43 UTC) #12
alexanderk
On 2015/07/23 08:07:43, alexanderk wrote: > On 2015/07/22 19:03:56, mmenke wrote: > > Sorry, didn't ...
5 years, 5 months ago (2015-07-23 10:47:42 UTC) #13
mmenke
LGTM! Great job on catching this.
5 years, 5 months ago (2015-07-23 15:09:38 UTC) #14
mmenke
Also, could you replace the bug line with: BUG=508900,503306 Bug 503306 is just the same ...
5 years, 5 months ago (2015-07-23 15:41:16 UTC) #15
alexanderk
On 2015/07/23 15:41:16, mmenke wrote: > Also, could you replace the bug line with: > ...
5 years, 5 months ago (2015-07-24 11:36:57 UTC) #16
mmenke
I'm going to go ahead an CQ this. Hope you don't mind - I'm considering ...
5 years, 5 months ago (2015-07-24 15:42:43 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1232113002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1232113002/40001
5 years, 5 months ago (2015-07-24 15:43:12 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_clobber_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_clobber_rel_ng/builds/49819)
5 years, 5 months ago (2015-07-24 15:49:32 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1232113002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1232113002/40001
5 years, 5 months ago (2015-07-24 16:25:25 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_clobber_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_clobber_rel_ng/builds/49861)
5 years, 5 months ago (2015-07-24 16:31:26 UTC) #25
mmenke
Not sure what's going on.... I'll try once more.
5 years, 5 months ago (2015-07-24 18:15:56 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1232113002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1232113002/40001
5 years, 5 months ago (2015-07-24 18:16:25 UTC) #28
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 5 months ago (2015-07-24 18:57:32 UTC) #29
commit-bot: I haz the power
5 years, 5 months ago (2015-07-24 18:58:15 UTC) #30
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/cd904b5cd82adca2fb432e37da4302c67d2b4c5d
Cr-Commit-Position: refs/heads/master@{#340298}

Powered by Google App Engine
This is Rietveld 408576698