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

Issue 1366203004: Small fix for URLRequestJobs when entering suspending mode. (Closed)

Created:
5 years, 2 months ago by mmenke
Modified:
5 years, 2 months ago
Reviewers:
davidben
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

Small fix for URLRequestJobs when entering suspending mode. When entering suspend mode, there was a window of time between when the request was canceled, and when the NetworkDelegate was informed it was canceled. This didn't exist for other cancellation paths, and if an embedder invoked certain callbacks in this period, thinking the request was still live, crashes could result. BUG=289715 Committed: https://crrev.com/05608da225e05b4a20da3f4ca0cb9a5276fcf3d6 Cr-Commit-Position: refs/heads/master@{#350938}

Patch Set 1 #

Patch Set 2 : Update comment #

Total comments: 2

Patch Set 3 : Response to comments, fix test name/description #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -1 line) Patch
M net/url_request/url_request_job.cc View 1 1 chunk +12 lines, -1 line 0 comments Download
M net/url_request/url_request_unittest.cc View 1 2 3 chunks +38 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (3 generated)
mmenke
I'm extremely skeptical that this will fix the crash, but I have verified that this ...
5 years, 2 months ago (2015-09-25 17:02:54 UTC) #2
davidben
lgtm https://codereview.chromium.org/1366203004/diff/20001/net/url_request/url_request_unittest.cc File net/url_request/url_request_unittest.cc (right): https://codereview.chromium.org/1366203004/diff/20001/net/url_request/url_request_unittest.cc#newcode3440 net/url_request/url_request_unittest.cc:3440: base::MessageLoop::current()->Run(); Nit: base::RunLoop().Run(); ?
5 years, 2 months ago (2015-09-25 21:24:55 UTC) #3
mmenke
Thanks! https://codereview.chromium.org/1366203004/diff/20001/net/url_request/url_request_unittest.cc File net/url_request/url_request_unittest.cc (right): https://codereview.chromium.org/1366203004/diff/20001/net/url_request/url_request_unittest.cc#newcode3440 net/url_request/url_request_unittest.cc:3440: base::MessageLoop::current()->Run(); On 2015/09/25 21:24:55, David Benjamin wrote: > ...
5 years, 2 months ago (2015-09-25 21:37:52 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1366203004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1366203004/40001
5 years, 2 months ago (2015-09-25 21:38:17 UTC) #7
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 2 months ago (2015-09-25 22:58:56 UTC) #8
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/05608da225e05b4a20da3f4ca0cb9a5276fcf3d6 Cr-Commit-Position: refs/heads/master@{#350938}
5 years, 2 months ago (2015-09-25 22:59:39 UTC) #9
mmenke
On 2015/09/25 22:59:39, commit-bot: I haz the power wrote: > Patchset 3 (id:??) landed as ...
5 years, 2 months ago (2015-09-28 22:06:43 UTC) #10
mmenke
5 years, 2 months ago (2015-09-28 22:07:33 UTC) #11
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in
https://codereview.chromium.org/1372213003/ by mmenke@chromium.org.

The reason for reverting is: Seeing odd failures that make no sense on android
bots that may somehow be due to this CL...Trying a revert.  :(.

Powered by Google App Engine
This is Rietveld 408576698