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

Issue 22877038: Add a CallbackRegistry class to base/ to manage callbacks (Closed)

Created:
7 years, 4 months ago by Cait (Slow)
Modified:
7 years, 3 months ago
CC:
chromium-reviews, erikwright+watch_chromium.org, danakj, Bernhard Bauer, tfarina
Visibility:
Public.

Description

This is needed in order to reduce the boilerplate involved in converting Notifications into callbacks. It is intended to be the callback version of ObserverList. Usage Assumptions: -Publishers outlive listeners (or at least, we can refactor things such that this is the case). Usage Requirements: -Typesafe: no blobs and casts. -Decentralized: listener registers with publisher directly, instead of through a central service. -Flexible: A listener may register callbacks with several publishers. -Ease-of-use: Listener does not need to explicitly hold a reference to a publisher to deregister from it. -Minimizes the risks of use-after-free: detect dangerous states (e.g dead listener is still registered) and fail in predictable ways instead. Also make it explicitly difficult to end up in those states. BUG=268984 TEST=base/callback_list_unittest.cc Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=222559

Patch Set 1 #

Total comments: 15

Patch Set 2 : #

Total comments: 27

Patch Set 3 : More tests and some clean up #

Patch Set 4 : #

Total comments: 14

Patch Set 5 : #

Total comments: 6

Patch Set 6 : #

Total comments: 8

Patch Set 7 : Remove the macro, template on details type #

Total comments: 5

Patch Set 8 : Use CallbackListBase #

Total comments: 34

Patch Set 9 : Move internal bits to base::internal, fix leaks #

Total comments: 45

Patch Set 10 : Comments pt 1. #

Patch Set 11 : Better documentation of test invariants #

Total comments: 29

Patch Set 12 : Get rid of CallbackListWithDetails, use specialization instead #

Total comments: 68

Patch Set 13 : Much clean up and removal of unneeded bits #

Total comments: 28

Patch Set 14 : #

Total comments: 1

Patch Set 15 : List --> Registry, Closure --> Handle #

Total comments: 39

Patch Set 16 : #

Total comments: 21

Patch Set 17 : Move Subscription inside CallbackRegistry<T> #

Patch Set 18 : ...and clean up #

Total comments: 21

Patch Set 19 : #

Total comments: 19

Patch Set 20 : #

Total comments: 5

Patch Set 21 : Rebase + nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+432 lines, -0 lines) Patch
M base/base.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +1 line, -0 lines 0 comments Download
M base/base.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +1 line, -0 lines 0 comments Download
A base/callback_registry.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +214 lines, -0 lines 0 comments Download
A base/callback_registry_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +216 lines, -0 lines 0 comments Download

Messages

Total messages: 91 (0 generated)
Avi (use Gerrit)
https://codereview.chromium.org/22877038/diff/1/base/callback_list.h File base/callback_list.h (right): https://codereview.chromium.org/22877038/diff/1/base/callback_list.h#newcode1 base/callback_list.h:1: // Copyright (c) 2011 The Chromium Authors. All rights ...
7 years, 4 months ago (2013-08-21 19:56:18 UTC) #1
Avi (use Gerrit)
Note that in https://codereview.chromium.org/22859034/, you forgot to null-check the removal callback before calling it. That's ...
7 years, 4 months ago (2013-08-21 19:58:39 UTC) #2
Avi (use Gerrit)
On 2013/08/21 19:58:39, Avi wrote: > Note that in https://codereview.chromium.org/22859034/, you forgot to null-check > ...
7 years, 4 months ago (2013-08-22 00:50:14 UTC) #3
Cait (Slow)
https://codereview.chromium.org/22877038/diff/1/base/callback_list.h File base/callback_list.h (right): https://codereview.chromium.org/22877038/diff/1/base/callback_list.h#newcode1 base/callback_list.h:1: // Copyright (c) 2011 The Chromium Authors. All rights ...
7 years, 4 months ago (2013-08-22 15:30:24 UTC) #4
Avi (use Gerrit)
Several of my comments concern code that is broken or otherwise wrong in ObserverList. I ...
7 years, 4 months ago (2013-08-22 16:25:42 UTC) #5
Cait (Slow)
https://codereview.chromium.org/22877038/diff/8001/base/callback_list.h File base/callback_list.h (right): https://codereview.chromium.org/22877038/diff/8001/base/callback_list.h#newcode6 base/callback_list.h:6: #define BASE_CALLBACK_LIST_H__ On 2013/08/22 16:25:42, Avi wrote: > One ...
7 years, 4 months ago (2013-08-23 16:33:44 UTC) #6
Avi (use Gerrit)
https://codereview.chromium.org/22877038/diff/8001/base/callback_list.h File base/callback_list.h (right): https://codereview.chromium.org/22877038/diff/8001/base/callback_list.h#newcode92 base/callback_list.h:92: } On 2013/08/23 16:33:44, Cait Phillips wrote: > Unfortunately, ...
7 years, 4 months ago (2013-08-23 16:51:11 UTC) #7
Cait (Slow)
https://codereview.chromium.org/22877038/diff/15001/base/callback_list.h File base/callback_list.h (right): https://codereview.chromium.org/22877038/diff/15001/base/callback_list.h#newcode109 base/callback_list.h:109: return base::Bind(&base::DoNothing); On 2013/08/23 16:51:12, Avi wrote: > Now ...
7 years, 4 months ago (2013-08-23 18:21:09 UTC) #8
Avi (use Gerrit)
LGTM with my nits. And give it a good subject line; this is no longer ...
7 years, 4 months ago (2013-08-23 18:36:13 UTC) #9
Cait (Slow)
Mark: PTAL -- thanks! https://codereview.chromium.org/22877038/diff/30001/base/callback_list.h File base/callback_list.h (right): https://codereview.chromium.org/22877038/diff/30001/base/callback_list.h#newcode75 base/callback_list.h:75: // This is the default ...
7 years, 4 months ago (2013-08-23 19:18:39 UTC) #10
Mark Mentovai
This seems reasonable, but I delegate this to ajwong, master of all things callback.
7 years, 4 months ago (2013-08-23 20:28:36 UTC) #11
awong
I like where this is going, but have some concerns about the implementation and API ...
7 years, 4 months ago (2013-08-24 04:11:07 UTC) #12
Avi (use Gerrit)
Note, BTW, that a lot of this behavior is intentionally mirroring what ObserverList does. If ...
7 years, 4 months ago (2013-08-24 05:28:21 UTC) #13
Cait (Slow)
I set up some time to meet and discuss this tomorrow in realtime (feel free ...
7 years, 3 months ago (2013-08-26 19:03:02 UTC) #14
awong
shoot sorry. I lost track of time over lunch...I'm free now if you still are. ...
7 years, 3 months ago (2013-08-26 19:08:09 UTC) #15
Cait (Slow)
I was able to remove the macro and switch the code to be templated on ...
7 years, 3 months ago (2013-08-26 23:49:26 UTC) #16
awong
https://codereview.chromium.org/22877038/diff/43001/base/callback_list.h File base/callback_list.h (right): https://codereview.chromium.org/22877038/diff/43001/base/callback_list.h#newcode120 base/callback_list.h:120: void RemoveCallback(const base::Callback<void(const Detail&)>& cb) { Does this and ...
7 years, 3 months ago (2013-08-27 01:01:05 UTC) #17
Mark Mentovai
https://codereview.chromium.org/22877038/diff/43001/base/callback_list.h File base/callback_list.h (right): https://codereview.chromium.org/22877038/diff/43001/base/callback_list.h#newcode125 base/callback_list.h:125: else awong wrote: > I think style guide says ...
7 years, 3 months ago (2013-08-27 02:08:20 UTC) #18
awong
Cait: One brainstormy thought, perhaps you could pull these out into a base class that ...
7 years, 3 months ago (2013-08-27 16:51:34 UTC) #19
Cait (Slow)
On 2013/08/27 16:51:34, awong wrote: > Cait: > > One brainstormy thought, perhaps you could ...
7 years, 3 months ago (2013-08-27 17:12:01 UTC) #20
awong
On Tue, Aug 27, 2013 at 10:12 AM, <caitkp@chromium.org> wrote: > On 2013/08/27 16:51:34, awong ...
7 years, 3 months ago (2013-08-27 18:24:10 UTC) #21
Cait (Slow)
Hi Albert, PTAL - the latest patch uses base::internal::CallbackBase as suggested, which does remove a ...
7 years, 3 months ago (2013-08-27 20:52:42 UTC) #22
awong
Looking pretty solid. I added a number of comments. Avi, do you have any thoughts ...
7 years, 3 months ago (2013-08-27 21:23:27 UTC) #23
Cait (Slow)
https://codereview.chromium.org/22877038/diff/53001/base/callback_list.h File base/callback_list.h (right): https://codereview.chromium.org/22877038/diff/53001/base/callback_list.h#newcode230 base/callback_list.h:230: // TODO(caitkp): This is a leak. On 2013/08/27 21:23:29, ...
7 years, 3 months ago (2013-08-27 22:14:19 UTC) #24
awong
https://codereview.chromium.org/22877038/diff/53001/base/callback_list.h File base/callback_list.h (right): https://codereview.chromium.org/22877038/diff/53001/base/callback_list.h#newcode230 base/callback_list.h:230: // TODO(caitkp): This is a leak. On 2013/08/27 22:14:20, ...
7 years, 3 months ago (2013-08-28 02:02:54 UTC) #25
Avi (use Gerrit)
The details of this are over my head. I added one comment before giving up ...
7 years, 3 months ago (2013-08-28 15:38:57 UTC) #26
Cait (Slow)
NotificationService has already allowed for observers to observe sources without any knowledge of their lifetimes. ...
7 years, 3 months ago (2013-08-28 17:16:14 UTC) #27
awong
On Wed, Aug 28, 2013 at 10:16 AM, <caitkp@chromium.org> wrote: > NotificationService has already allowed ...
7 years, 3 months ago (2013-08-28 17:33:37 UTC) #28
Avi (use Gerrit)
On 2013/08/28 17:33:37, awong wrote: > Avi, I've got a present for you: > https://code.google.com/p/chromium/codesearch#chromium/src/base/bind_helpers.h&q=ScopedClosureRunner&sq=package:chromium&type=cs&l=142 ...
7 years, 3 months ago (2013-08-28 17:48:27 UTC) #29
Cait (Slow)
https://codereview.chromium.org/22877038/diff/53001/base/callback_list.h File base/callback_list.h (right): https://codereview.chromium.org/22877038/diff/53001/base/callback_list.h#newcode70 base/callback_list.h:70: class CallbackListBase { On 2013/08/27 21:23:29, awong wrote: > ...
7 years, 3 months ago (2013-08-28 21:50:20 UTC) #30
Avi (use Gerrit)
https://codereview.chromium.org/22877038/diff/64001/base/callback_list.h File base/callback_list.h (right): https://codereview.chromium.org/22877038/diff/64001/base/callback_list.h#newcode53 base/callback_list.h:53: // remove_foo_callback_.reset(new base::ScopedClosureRunner( :( It would be nice if ...
7 years, 3 months ago (2013-08-29 16:22:58 UTC) #31
awong
Here's a more thorough review. I think I kinda like it (especially the thorough unittest ...
7 years, 3 months ago (2013-08-29 19:30:47 UTC) #32
awong
2 more thoughts. https://codereview.chromium.org/22877038/diff/64001/base/callback_list_internal.cc File base/callback_list_internal.cc (right): https://codereview.chromium.org/22877038/diff/64001/base/callback_list_internal.cc#newcode46 base/callback_list_internal.cc:46: Compact(); Is this safe if there ...
7 years, 3 months ago (2013-08-29 20:45:33 UTC) #33
Cait (Slow)
Addressed most of the comments. Better documentation of unit test invariants coming tomorrow a.m. https://codereview.chromium.org/22877038/diff/64001/base/callback_list.h ...
7 years, 3 months ago (2013-08-30 00:28:01 UTC) #34
Avi (use Gerrit)
https://codereview.chromium.org/22877038/diff/79001/base/callback_list.h File base/callback_list.h (right): https://codereview.chromium.org/22877038/diff/79001/base/callback_list.h#newcode50 base/callback_list.h:50: // // TODO (caitkp): A less clunky approach here? ...
7 years, 3 months ago (2013-08-30 19:49:47 UTC) #35
Cait (Slow)
awong@, akalin@: gentle ping -- thanks!
7 years, 3 months ago (2013-09-03 14:26:58 UTC) #36
Cait (Slow)
On 2013/09/03 14:26:58, Cait Phillips wrote: > awong@, akalin@: gentle ping -- thanks! Albert: I've ...
7 years, 3 months ago (2013-09-04 17:25:18 UTC) #37
awong
Here's a few in-prgress comments. Will look at your templated CL now. https://codereview.chromium.org/22877038/diff/64001/base/callback_list_internal.h File base/callback_list_internal.h ...
7 years, 3 months ago (2013-09-04 17:44:35 UTC) #38
awong
https://codereview.chromium.org/22877038/diff/79001/base/callback_list.cc File base/callback_list.cc (right): https://codereview.chromium.org/22877038/diff/79001/base/callback_list.cc#newcode1 base/callback_list.cc:1: #include "base/callback_list.h" Missing copyright. https://codereview.chromium.org/22877038/diff/79001/base/callback_list.cc#newcode33 base/callback_list.cc:33: } // namespace ...
7 years, 3 months ago (2013-09-04 18:48:20 UTC) #39
erikwright (departed)
https://codereview.chromium.org/22877038/diff/88001/base/callback_list.h File base/callback_list.h (right): https://codereview.chromium.org/22877038/diff/88001/base/callback_list.h#newcode23 base/callback_list.h:23: // iterator. So, it safely handles the case of ...
7 years, 3 months ago (2013-09-04 19:35:55 UTC) #40
awong
https://codereview.chromium.org/22877038/diff/88001/base/callback_list.h File base/callback_list.h (right): https://codereview.chromium.org/22877038/diff/88001/base/callback_list.h#newcode100 base/callback_list.h:100: bool might_have_callbacks() { On 2013/09/04 19:35:55, erikwright wrote: > ...
7 years, 3 months ago (2013-09-04 19:50:40 UTC) #41
Cait (Slow)
Did some ruthless pruning of behaviors that might someday be needed but aren't currently. Hopefully ...
7 years, 3 months ago (2013-09-04 22:09:24 UTC) #42
awong
Getting close! I like the ruthless pruning. :) Most of these are style nits with ...
7 years, 3 months ago (2013-09-04 23:20:06 UTC) #43
erikwright (departed)
https://codereview.chromium.org/22877038/diff/99001/base/callback_list.h File base/callback_list.h (right): https://codereview.chromium.org/22877038/diff/99001/base/callback_list.h#newcode75 base/callback_list.h:75: base::Closure Add(const CallbackType& cb) WARN_UNUSED_RESULT { On 2013/09/04 23:20:07, ...
7 years, 3 months ago (2013-09-05 14:14:31 UTC) #44
Avi (use Gerrit)
https://codereview.chromium.org/22877038/diff/99001/base/callback_list.h File base/callback_list.h (right): https://codereview.chromium.org/22877038/diff/99001/base/callback_list.h#newcode75 base/callback_list.h:75: base::Closure Add(const CallbackType& cb) WARN_UNUSED_RESULT { On 2013/09/05 14:14:31, ...
7 years, 3 months ago (2013-09-05 15:03:47 UTC) #45
erikwright (departed)
On 2013/09/05 15:03:47, Avi wrote: > https://codereview.chromium.org/22877038/diff/99001/base/callback_list.h > File base/callback_list.h (right): > > https://codereview.chromium.org/22877038/diff/99001/base/callback_list.h#newcode75 > ...
7 years, 3 months ago (2013-09-05 15:20:39 UTC) #46
awong
https://codereview.chromium.org/22877038/diff/99001/base/callback_list.h File base/callback_list.h (right): https://codereview.chromium.org/22877038/diff/99001/base/callback_list.h#newcode75 base/callback_list.h:75: base::Closure Add(const CallbackType& cb) WARN_UNUSED_RESULT { On 2013/09/05 14:14:31, ...
7 years, 3 months ago (2013-09-05 17:42:17 UTC) #47
erikwright (departed)
On 2013/09/05 17:42:17, awong wrote: > https://codereview.chromium.org/22877038/diff/99001/base/callback_list.h > File base/callback_list.h (right): > > https://codereview.chromium.org/22877038/diff/99001/base/callback_list.h#newcode75 > ...
7 years, 3 months ago (2013-09-05 20:07:23 UTC) #48
awong
On 2013/09/05 20:07:23, erikwright wrote: > On 2013/09/05 17:42:17, awong wrote: > > https://codereview.chromium.org/22877038/diff/99001/base/callback_list.h > ...
7 years, 3 months ago (2013-09-05 22:34:42 UTC) #49
awong
https://codereview.chromium.org/22877038/diff/113001/base/callback_list_internal.cc File base/callback_list_internal.cc (right): https://codereview.chromium.org/22877038/diff/113001/base/callback_list_internal.cc#newcode73 base/callback_list_internal.cc:73: DCHECK(active_iterator_count_ == 0 && callbacks_.size() == 0); This should ...
7 years, 3 months ago (2013-09-05 22:34:57 UTC) #50
Cait (Slow)
On 2013/09/05 22:34:42, awong wrote: > On 2013/09/05 20:07:23, erikwright wrote: > > On 2013/09/05 ...
7 years, 3 months ago (2013-09-05 23:27:28 UTC) #51
awong
On Thu, Sep 5, 2013 at 4:27 PM, <caitkp@chromium.org> wrote: > On 2013/09/05 22:34:42, awong ...
7 years, 3 months ago (2013-09-06 00:57:42 UTC) #52
awong
On Thu, Sep 5, 2013 at 5:57 PM, Albert J. Wong (王重傑) <ajwong@chromium.org>wrote: > > ...
7 years, 3 months ago (2013-09-06 01:20:07 UTC) #53
Avi (use Gerrit)
> If we start seeing people wanting a CallbackList that can be deleted before > ...
7 years, 3 months ago (2013-09-06 01:39:45 UTC) #54
erikwright (departed)
> How's this sound: > > (1) CallbackList::Add() still returns a Closure > (2) CallbackList::Add() ...
7 years, 3 months ago (2013-09-06 15:19:58 UTC) #55
awong
On Fri, Sep 6, 2013 at 8:19 AM, <erikwright@chromium.org> wrote: > How's this sound: >> ...
7 years, 3 months ago (2013-09-06 16:09:17 UTC) #56
awong
On Fri, Sep 6, 2013 at 9:08 AM, Albert J. Wong (王重傑) <ajwong@chromium.org>wrote: > On ...
7 years, 3 months ago (2013-09-06 16:20:41 UTC) #57
Cait (Slow)
In summary: (1) CallbackList is now CallbackRegistry (2) CallbackRegistry::Add() returns a scoped_ptr<CallbackHandle>, and will WARN_UNUSED_RESULT ...
7 years, 3 months ago (2013-09-06 18:41:45 UTC) #58
awong
mostly small nits. Main concern is CallbackHandle being in its own file as a top-level ...
7 years, 3 months ago (2013-09-06 19:03:23 UTC) #59
Cait (Slow)
https://codereview.chromium.org/22877038/diff/124001/base/callback_handle.h File base/callback_handle.h (right): https://codereview.chromium.org/22877038/diff/124001/base/callback_handle.h#newcode10 base/callback_handle.h:10: class CallbackHandle { On 2013/09/06 19:03:24, awong wrote: > ...
7 years, 3 months ago (2013-09-06 19:18:36 UTC) #60
awong
https://codereview.chromium.org/22877038/diff/124001/base/callback_handle.h File base/callback_handle.h (right): https://codereview.chromium.org/22877038/diff/124001/base/callback_handle.h#newcode10 base/callback_handle.h:10: class CallbackHandle { On 2013/09/06 19:18:37, Cait Phillips wrote: ...
7 years, 3 months ago (2013-09-06 19:31:02 UTC) #61
Cait (Slow)
https://codereview.chromium.org/22877038/diff/124001/base/callback_handle.h File base/callback_handle.h (right): https://codereview.chromium.org/22877038/diff/124001/base/callback_handle.h#newcode10 base/callback_handle.h:10: class CallbackHandle { On 2013/09/06 19:31:02, awong wrote: > ...
7 years, 3 months ago (2013-09-06 20:18:30 UTC) #62
awong
On 2013/09/06 20:18:30, Cait Phillips wrote: > https://codereview.chromium.org/22877038/diff/124001/base/callback_handle.h > File base/callback_handle.h (right): > > https://codereview.chromium.org/22877038/diff/124001/base/callback_handle.h#newcode10 ...
7 years, 3 months ago (2013-09-06 20:38:48 UTC) #63
erikwright (departed)
Haven't looked at the tests yet. https://codereview.chromium.org/22877038/diff/124001/base/callback_handle.h File base/callback_handle.h (right): https://codereview.chromium.org/22877038/diff/124001/base/callback_handle.h#newcode12 base/callback_handle.h:12: virtual ~CallbackHandle() {} ...
7 years, 3 months ago (2013-09-06 21:01:06 UTC) #64
Bernhard Bauer
Drive-by! :) https://codereview.chromium.org/22877038/diff/124001/base/callback_handle.h File base/callback_handle.h (right): https://codereview.chromium.org/22877038/diff/124001/base/callback_handle.h#newcode12 base/callback_handle.h:12: virtual ~CallbackHandle() {} On 2013/09/06 21:01:07, erikwright ...
7 years, 3 months ago (2013-09-06 21:08:57 UTC) #65
Cait (Slow)
I wish there was a way to not have the public API buried under the ...
7 years, 3 months ago (2013-09-06 22:17:10 UTC) #66
awong
Yeah...that's the problem with templates. You can't easily extract out the interface. https://codereview.chromium.org/22877038/diff/124001/base/callback_handle.h File base/callback_handle.h ...
7 years, 3 months ago (2013-09-06 23:49:29 UTC) #67
erikwright (departed)
https://codereview.chromium.org/22877038/diff/124001/base/callback_handle.h File base/callback_handle.h (right): https://codereview.chromium.org/22877038/diff/124001/base/callback_handle.h#newcode12 base/callback_handle.h:12: virtual ~CallbackHandle() {} On 2013/09/06 21:08:58, Bernhard Bauer wrote: ...
7 years, 3 months ago (2013-09-09 16:09:32 UTC) #68
erikwright (departed)
https://codereview.chromium.org/22877038/diff/138001/base/callback_registry.h File base/callback_registry.h (right): https://codereview.chromium.org/22877038/diff/138001/base/callback_registry.h#newcode194 base/callback_registry.h:194: base::Callback<void(const Details&)> >::Iterator Iterator; On 2013/09/06 23:49:30, awong wrote: ...
7 years, 3 months ago (2013-09-09 16:18:00 UTC) #69
erikwright (departed)
https://codereview.chromium.org/22877038/diff/138001/base/callback_registry.h File base/callback_registry.h (right): https://codereview.chromium.org/22877038/diff/138001/base/callback_registry.h#newcode67 base/callback_registry.h:67: class Subscription { On 2013/09/06 23:49:30, awong wrote: > ...
7 years, 3 months ago (2013-09-09 16:24:32 UTC) #70
Bernhard Bauer
https://codereview.chromium.org/22877038/diff/124001/base/callback_handle.h File base/callback_handle.h (right): https://codereview.chromium.org/22877038/diff/124001/base/callback_handle.h#newcode12 base/callback_handle.h:12: virtual ~CallbackHandle() {} On 2013/09/09 16:09:38, erikwright wrote: > ...
7 years, 3 months ago (2013-09-09 16:40:17 UTC) #71
awong
https://codereview.chromium.org/22877038/diff/138001/base/callback_registry.h File base/callback_registry.h (right): https://codereview.chromium.org/22877038/diff/138001/base/callback_registry.h#newcode67 base/callback_registry.h:67: class Subscription { On 2013/09/09 16:24:34, erikwright wrote: > ...
7 years, 3 months ago (2013-09-09 17:19:26 UTC) #72
awong
Summary: (1) kill base::Subscription (2) Move it into CallbackRegistry<T>::Subscription w/o virtual destruction (3) Punt on ...
7 years, 3 months ago (2013-09-09 18:17:53 UTC) #73
Cait (Slow)
Hi Albert -- PTAL. Subscription is now a nested class of CallbackRegistry, as discussed. https://codereview.chromium.org/22877038/diff/138001/base/callback_registry.h ...
7 years, 3 months ago (2013-09-09 18:46:51 UTC) #74
awong
https://codereview.chromium.org/22877038/diff/122001/base/callback_registry.h File base/callback_registry.h (right): https://codereview.chromium.org/22877038/diff/122001/base/callback_registry.h#newcode73 base/callback_registry.h:73: typedef std::list<CallbackType> ListType; Put this typedef in Subscription? https://codereview.chromium.org/22877038/diff/122001/base/callback_registry.h#newcode78 ...
7 years, 3 months ago (2013-09-09 19:30:18 UTC) #75
Cait (Slow)
oops--Looks like a couple of my clean up changes weren't picked up in the last ...
7 years, 3 months ago (2013-09-09 19:40:30 UTC) #76
erikwright (departed)
https://codereview.chromium.org/22877038/diff/122001/base/callback_registry.h File base/callback_registry.h (right): https://codereview.chromium.org/22877038/diff/122001/base/callback_registry.h#newcode57 base/callback_registry.h:57: // void OnFoo(const Foo& foo) { nit: put this ...
7 years, 3 months ago (2013-09-09 19:56:16 UTC) #77
awong
https://codereview.chromium.org/22877038/diff/122001/base/callback_registry.h File base/callback_registry.h (right): https://codereview.chromium.org/22877038/diff/122001/base/callback_registry.h#newcode68 base/callback_registry.h:68: // Holds the methods shared by all specializations of ...
7 years, 3 months ago (2013-09-09 20:04:53 UTC) #78
erikwright (departed)
https://codereview.chromium.org/22877038/diff/46001/base/callback_registry_unittest.cc File base/callback_registry_unittest.cc (right): https://codereview.chromium.org/22877038/diff/46001/base/callback_registry_unittest.cc#newcode9 base/callback_registry_unittest.cc:9: #include "base/compiler_specific.h" I think you meant to include basictypes.h ...
7 years, 3 months ago (2013-09-09 20:08:12 UTC) #79
Cait (Slow)
https://codereview.chromium.org/22877038/diff/122001/base/callback_registry.h File base/callback_registry.h (right): https://codereview.chromium.org/22877038/diff/122001/base/callback_registry.h#newcode57 base/callback_registry.h:57: // void OnFoo(const Foo& foo) { On 2013/09/09 19:56:18, ...
7 years, 3 months ago (2013-09-09 20:33:01 UTC) #80
erikwright (departed)
LGTM. LVGTM. https://codereview.chromium.org/22877038/diff/152001/base/callback_registry.h File base/callback_registry.h (right): https://codereview.chromium.org/22877038/diff/152001/base/callback_registry.h#newcode58 base/callback_registry.h:58: // void OnFoo(const Foo& foo) { Is ...
7 years, 3 months ago (2013-09-10 14:07:07 UTC) #81
awong
LGTM w/nits from Erik addressed. https://codereview.chromium.org/22877038/diff/152001/base/callback_registry.h File base/callback_registry.h (right): https://codereview.chromium.org/22877038/diff/152001/base/callback_registry.h#newcode58 base/callback_registry.h:58: // void OnFoo(const Foo& ...
7 years, 3 months ago (2013-09-10 17:06:37 UTC) #82
Cait (Slow)
https://codereview.chromium.org/22877038/diff/152001/base/callback_registry.h File base/callback_registry.h (right): https://codereview.chromium.org/22877038/diff/152001/base/callback_registry.h#newcode58 base/callback_registry.h:58: // void OnFoo(const Foo& foo) { On 2013/09/10 14:07:09, ...
7 years, 3 months ago (2013-09-10 18:24:38 UTC) #83
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/caitkp@chromium.org/22877038/156001
7 years, 3 months ago (2013-09-10 18:29:55 UTC) #84
Mark Mentovai
Be sure to fix up the CL description before checking in.
7 years, 3 months ago (2013-09-10 18:42:45 UTC) #85
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 3 months ago (2013-09-10 18:43:08 UTC) #86
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/caitkp@chromium.org/22877038/156001
7 years, 3 months ago (2013-09-10 18:47:59 UTC) #87
commit-bot: I haz the power
Retried try job too often on win7_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win7_aura&number=77584
7 years, 3 months ago (2013-09-11 09:19:36 UTC) #88
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/caitkp@chromium.org/22877038/156001
7 years, 3 months ago (2013-09-11 13:54:10 UTC) #89
commit-bot: I haz the power
Change committed as 222559
7 years, 3 months ago (2013-09-11 15:16:36 UTC) #90
Avi (use Gerrit)
7 years, 3 months ago (2013-09-11 15:22:27 UTC) #91
Message was sent while issue was closed.
Whoooooo!!!!!!!!!!!!!!

Powered by Google App Engine
This is Rietveld 408576698