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

Issue 2542843006: ResourceLoader: Fix a bunch of double-cancellation/double-error notification cases. (Closed)

Created:
4 years ago by mmenke
Modified:
4 years ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, chromoting-reviews_chromium.org, jam, nhiroki, darin-cc_chromium.org, jkarlin+watch_chromium.org, loading-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ResourceLoader: Fix a bunch of double-cancellation/double-error notification cases. There are a number of cases where ResourceLoader ends up notifying ResourceHandlers twice of the same failure. This CL fixes them and adds some tests. It also makes URLRequest no longer post notification on sync read errors, which was causing double notifications in one of those cases. Also fixes two other URLRequest consumers that depended on that behavior. BUG=669709, 670400 Committed: https://crrev.com/94f1bd9459e17972e8e3f6f51a3d10fbf4a94df7 Cr-Commit-Position: refs/heads/master@{#437057}

Patch Set 1 #

Patch Set 2 : Fixes #

Patch Set 3 : Fix DRP / notify delegate of completion synchronously on read error #

Patch Set 4 : Inline ReadMore #

Total comments: 4

Patch Set 5 : Oops, forgot to save a file after inlining ReadMore #

Patch Set 6 : Remove outdated comments about bug, remove extra message loop spin #

Patch Set 7 : Fix async read case (Async read tests in followup CL) #

Patch Set 8 : Merge #

Patch Set 9 : Move comment #

Total comments: 14

Patch Set 10 : Response to comments #

Patch Set 11 : Changes from https://codereview.chromium.org/2557433005 only (plus uninteresting merge) #

Patch Set 12 : Combined patch set #

Patch Set 13 : Fix merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+959 lines, -375 lines) Patch
M content/browser/cache_storage/cache_storage_blob_to_disk_cache.cc View 11 1 chunk +1 line, -1 line 0 comments Download
M content/browser/loader/intercepting_resource_handler_unittest.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +19 lines, -0 lines 0 comments Download
M content/browser/loader/resource_loader.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/loader/resource_loader.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +41 lines, -51 lines 0 comments Download
M content/browser/loader/resource_loader_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 24 chunks +524 lines, -257 lines 0 comments Download
M content/browser/loader/test_resource_handler.h View 1 2 3 4 5 6 7 8 9 10 7 chunks +85 lines, -6 lines 0 comments Download
M content/browser/loader/test_resource_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +98 lines, -13 lines 0 comments Download
M net/url_request/url_request.cc View 1 2 11 1 chunk +4 lines, -4 lines 0 comments Download
M net/url_request/url_request_job.h View 1 2 3 4 5 6 7 8 9 11 1 chunk +11 lines, -7 lines 0 comments Download
M net/url_request/url_request_job.cc View 1 2 3 4 5 6 7 8 9 11 6 chunks +24 lines, -19 lines 0 comments Download
M net/url_request/url_request_test_job.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -0 lines 0 comments Download
M net/url_request/url_request_test_job.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +16 lines, -0 lines 0 comments Download
M net/url_request/url_request_test_util.h View 1 11 1 chunk +1 line, -0 lines 0 comments Download
M net/url_request/url_request_test_util.cc View 1 11 1 chunk +11 lines, -4 lines 0 comments Download
M net/url_request/url_request_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +29 lines, -9 lines 0 comments Download
M remoting/host/token_validator_base.cc View 1 2 3 4 5 6 7 8 9 11 1 chunk +5 lines, -2 lines 0 comments Download
M remoting/host/token_validator_factory_impl_unittest.cc View 11 6 chunks +85 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 72 (57 generated)
mmenke
rdsmith: Sorry for sending all these reviews your way. This one depends on the new ...
4 years ago (2016-12-02 15:20:08 UTC) #17
mmenke
On 2016/12/02 15:20:08, mmenke wrote: > rdsmith: Sorry for sending all these reviews your way. ...
4 years ago (2016-12-02 15:22:39 UTC) #18
Randy Smith (Not in Mondays)
nit: Could you deal with the "/" being used as a "." in the in ...
4 years ago (2016-12-06 23:44:43 UTC) #38
mmenke
Thanks for the careful review! I'll look into the revert now. Looks like just ServiceWorker ...
4 years ago (2016-12-07 16:17:15 UTC) #42
mmenke
Think all that trybot red is due to the revert.
4 years ago (2016-12-07 16:20:30 UTC) #45
mmenke
On 2016/12/07 16:20:30, mmenke wrote: > Think all that trybot red is due to the ...
4 years ago (2016-12-07 17:06:24 UTC) #46
Randy Smith (Not in Mondays)
On 2016/12/07 17:06:24, mmenke wrote: > On 2016/12/07 16:20:30, mmenke wrote: > > Think all ...
4 years ago (2016-12-07 17:14:43 UTC) #47
mmenke
On 2016/12/07 17:14:43, Randy Smith - Not in Mondays wrote: > On 2016/12/07 17:06:24, mmenke ...
4 years ago (2016-12-07 17:27:22 UTC) #49
mmenke
[+sergeyu]: Please review remoting/ (Changes are both a bugfix and updates to work with the ...
4 years ago (2016-12-07 18:33:04 UTC) #59
Randy Smith (Not in Mondays)
LGTM. Thanks again for doing this.
4 years ago (2016-12-07 19:03:32 UTC) #62
jkarlin
cache_storage/ lgtm, thanks for the fix!
4 years ago (2016-12-07 19:32:39 UTC) #63
Sergey Ulanov
lgtm
4 years ago (2016-12-07 19:40:52 UTC) #64
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2542843006/240001
4 years ago (2016-12-07 20:53:36 UTC) #66
commit-bot: I haz the power
Committed patchset #13 (id:240001)
4 years ago (2016-12-07 21:13:54 UTC) #70
commit-bot: I haz the power
4 years ago (2016-12-07 21:17:49 UTC) #72
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/94f1bd9459e17972e8e3f6f51a3d10fbf4a94df7
Cr-Commit-Position: refs/heads/master@{#437057}

Powered by Google App Engine
This is Rietveld 408576698