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

Issue 2563933003: Remove cancelWithError() from DocumentThreadableLoader (Closed)

Created:
4 years ago by tyoshino (SeeGerritForStatus)
Modified:
4 years ago
Reviewers:
yhirano
CC:
chromium-reviews, blink-reviews, loading-reviews_chromium.org, tyoshino+watch_chromium.org, Nate Chapin, gavinp+loader_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove cancelWithError() from DocumentThreadableLoader cancelWithError() should be removed because: - The code creating a ResourceError when error is null in cancelWithError() can be moved to cancel() to simplify the logic. - Check on m_client and resource() is unnecessary when it's called from didTimeout. As a bonus, factor out the common logic that detaches m_client and calls didFail()/didFailAccessControlCheck() on the detached client into methods. R=yhirano@chromium.org BUG=none Committed: https://crrev.com/fc84f8cceac793a5290e11d429ec50dd19c9f293 Cr-Commit-Position: refs/heads/master@{#437895}

Patch Set 1 #

Patch Set 2 : a #

Total comments: 2

Patch Set 3 : Rebase, Addressed #9 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -35 lines) Patch
M third_party/WebKit/Source/core/loader/DocumentThreadableLoader.h View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/loader/DocumentThreadableLoader.cpp View 1 9 chunks +30 lines, -32 lines 0 comments Download

Messages

Total messages: 21 (14 generated)
tyoshino (SeeGerritForStatus)
4 years ago (2016-12-12 04:40:09 UTC) #8
yhirano
lgtm > cancelWithError() can be moved to cancel() to simply the logic. s/simply/simplify/ https://codereview.chromium.org/2563933003/diff/20001/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.h File ...
4 years ago (2016-12-12 08:46:55 UTC) #9
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/2563933003/diff/20001/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.h File third_party/WebKit/Source/core/loader/DocumentThreadableLoader.h (right): https://codereview.chromium.org/2563933003/diff/20001/third_party/WebKit/Source/core/loader/DocumentThreadableLoader.h#newcode113 third_party/WebKit/Source/core/loader/DocumentThreadableLoader.h:113: void cancelWithError(const ResourceError&); On 2016/12/12 08:46:55, yhirano wrote: > ...
4 years ago (2016-12-12 15:42:10 UTC) #11
tyoshino (SeeGerritForStatus)
On 2016/12/12 08:46:55, yhirano wrote: > > cancelWithError() can be moved to cancel() to simply ...
4 years ago (2016-12-12 15:42:25 UTC) #12
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/2563933003/40001
4 years ago (2016-12-12 15:46:31 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years ago (2016-12-12 17:35:51 UTC) #19
commit-bot: I haz the power
4 years ago (2016-12-12 17:52:54 UTC) #21
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/fc84f8cceac793a5290e11d429ec50dd19c9f293
Cr-Commit-Position: refs/heads/master@{#437895}

Powered by Google App Engine
This is Rietveld 408576698