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

Issue 2289703002: Add Callback::IsCancelled (Closed)

Created:
4 years, 3 months ago by tzik
Modified:
4 years, 3 months ago
CC:
chromium-reviews, hiroshige, kouhei (in TOK)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add Callback::IsCancelled Callback::IsCancelled() checks if the Callback is cancelled by WeakPtr invalidation. Committed: https://crrev.com/59aa6bb1162b31d2af31c4a235c67826687b6b28 Cr-Commit-Position: refs/heads/master@{#417248}

Patch Set 1 #

Patch Set 2 : +test #

Patch Set 3 : update #

Patch Set 4 : +comment #

Total comments: 5

Patch Set 5 : rebase #

Patch Set 6 : return false on IsCancelled() on empty callbacks #

Patch Set 7 : update comment #

Patch Set 8 : revert to PS5 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -6 lines) Patch
M base/bind_internal.h View 1 2 2 chunks +34 lines, -1 line 0 comments Download
M base/bind_unittest.cc View 1 1 chunk +22 lines, -0 lines 0 comments Download
M base/callback_internal.h View 1 2 3 7 4 chunks +11 lines, -1 line 0 comments Download
M base/callback_internal.cc View 1 2 6 7 2 chunks +10 lines, -2 lines 0 comments Download
M base/callback_unittest.cc View 1 2 1 chunk +8 lines, -2 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 60 (42 generated)
tzik
PTAL
4 years, 3 months ago (2016-09-07 08:45:39 UTC) #23
alex clarke (OOO till 29th)
This has the functionality I'd like, and it's significantly simpler than the methods I was ...
4 years, 3 months ago (2016-09-07 09:13:12 UTC) #24
Yuta Kitamura
lgtm
4 years, 3 months ago (2016-09-07 10:31:25 UTC) #25
tzik
On 2016/09/07 09:13:12, alex clarke wrote: > This has the functionality I'd like, and it's ...
4 years, 3 months ago (2016-09-07 11:04:47 UTC) #26
alex clarke (OOO till 29th)
On 2016/09/07 11:04:47, tzik wrote: > On 2016/09/07 09:13:12, alex clarke wrote: > > This ...
4 years, 3 months ago (2016-09-07 11:06:20 UTC) #27
alex clarke (OOO till 29th)
On 2016/09/07 11:06:20, alex clarke wrote: > On 2016/09/07 11:04:47, tzik wrote: > > On ...
4 years, 3 months ago (2016-09-07 11:06:45 UTC) #28
tzik
On 2016/09/07 11:04:47, tzik wrote: > On 2016/09/07 09:13:12, alex clarke wrote: > > This ...
4 years, 3 months ago (2016-09-07 11:08:00 UTC) #29
alex clarke (OOO till 29th)
https://codereview.chromium.org/2289703002/diff/60001/base/callback_internal.cc File base/callback_internal.cc (right): https://codereview.chromium.org/2289703002/diff/60001/base/callback_internal.cc#newcode41 base/callback_internal.cc:41: DCHECK(bind_state_); Can we do this instead of the DCHECK? ...
4 years, 3 months ago (2016-09-07 15:53:53 UTC) #34
dcheng
LGTM https://codereview.chromium.org/2289703002/diff/60001/base/callback_internal.cc File base/callback_internal.cc (right): https://codereview.chromium.org/2289703002/diff/60001/base/callback_internal.cc#newcode41 base/callback_internal.cc:41: DCHECK(bind_state_); On 2016/09/07 15:53:53, alex clarke wrote: > ...
4 years, 3 months ago (2016-09-07 21:40:27 UTC) #37
tzik
https://codereview.chromium.org/2289703002/diff/60001/base/callback_internal.cc File base/callback_internal.cc (right): https://codereview.chromium.org/2289703002/diff/60001/base/callback_internal.cc#newcode41 base/callback_internal.cc:41: DCHECK(bind_state_); On 2016/09/07 21:40:27, dcheng wrote: > On 2016/09/07 ...
4 years, 3 months ago (2016-09-08 03:55:10 UTC) #40
dcheng
https://codereview.chromium.org/2289703002/diff/60001/base/callback_internal.cc File base/callback_internal.cc (right): https://codereview.chromium.org/2289703002/diff/60001/base/callback_internal.cc#newcode41 base/callback_internal.cc:41: DCHECK(bind_state_); On 2016/09/08 03:55:10, tzik wrote: > On 2016/09/07 ...
4 years, 3 months ago (2016-09-08 04:01:33 UTC) #41
tzik
https://codereview.chromium.org/2289703002/diff/60001/base/callback_internal.cc File base/callback_internal.cc (right): https://codereview.chromium.org/2289703002/diff/60001/base/callback_internal.cc#newcode41 base/callback_internal.cc:41: DCHECK(bind_state_); On 2016/09/08 04:01:33, dcheng wrote: > On 2016/09/08 ...
4 years, 3 months ago (2016-09-08 05:21:46 UTC) #44
dcheng
On 2016/09/08 05:21:46, tzik wrote: > https://codereview.chromium.org/2289703002/diff/60001/base/callback_internal.cc > File base/callback_internal.cc (right): > > https://codereview.chromium.org/2289703002/diff/60001/base/callback_internal.cc#newcode41 > ...
4 years, 3 months ago (2016-09-08 05:40:18 UTC) #45
alex clarke (OOO till 29th)
On 2016/09/08 04:01:33, dcheng wrote: > https://codereview.chromium.org/2289703002/diff/60001/base/callback_internal.cc > File base/callback_internal.cc (right): > > https://codereview.chromium.org/2289703002/diff/60001/base/callback_internal.cc#newcode41 > ...
4 years, 3 months ago (2016-09-08 08:45:03 UTC) #50
alex clarke (OOO till 29th)
On 2016/09/08 08:45:03, alex clarke wrote: > On 2016/09/08 04:01:33, dcheng wrote: > > > ...
4 years, 3 months ago (2016-09-08 10:01:55 UTC) #53
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/2289703002/140001
4 years, 3 months ago (2016-09-08 10:54:45 UTC) #56
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 3 months ago (2016-09-08 10:59:11 UTC) #58
commit-bot: I haz the power
4 years, 3 months ago (2016-09-08 11:02:06 UTC) #60
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/59aa6bb1162b31d2af31c4a235c67826687b6b28
Cr-Commit-Position: refs/heads/master@{#417248}

Powered by Google App Engine
This is Rietveld 408576698