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

Issue 23514056: Function-type templated CallbackRegistry (Closed)

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

Description

Patch Set 1 #

Total comments: 5

Patch Set 2 : Remove const refs requirement, sanity tests for all the arities #

Patch Set 3 : CallbackParamTraits #

Total comments: 4

Patch Set 4 : #

Total comments: 1

Patch Set 5 : .nc file and existing instances converted #

Total comments: 3

Patch Set 6 : pure merge #

Patch Set 7 : typename fix for WIN #

Patch Set 8 : Pure merge 2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+400 lines, -84 lines) Patch
M base/base.gyp View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M base/callback_registry.h View 1 2 3 4 5 6 7 chunks +191 lines, -22 lines 0 comments Download
A + base/callback_registry.h.pump View 1 2 3 4 5 6 6 chunks +55 lines, -28 lines 0 comments Download
M base/callback_registry_unittest.cc View 1 3 4 9 chunks +92 lines, -24 lines 0 comments Download
A base/callback_registry_unittest.nc View 1 2 3 4 5 6 7 1 chunk +51 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/settings/cros_settings.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/settings/cros_settings.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/prefs/prefs_tab_helper.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/user_style_sheet_watcher.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/user_style_sheet_watcher.cc View 1 2 3 4 4 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 36 (0 generated)
Cait (Slow)
Hi all, Here is a first pass at a multi-parameter friendly CallbackRegistry. A couple open ...
7 years, 3 months ago (2013-09-12 19:42:01 UTC) #1
awong
I would *not* require const& on the function signature. Imagine passing a pointer: CallbackRegistry<void(const Foo*&)>. ...
7 years, 3 months ago (2013-09-12 21:17:47 UTC) #2
awong
Oh, and if we're going add another pump file, we should run a sanity check ...
7 years, 3 months ago (2013-09-12 21:18:28 UTC) #3
jam
On 2013/09/12 21:17:47, awong wrote: > I would *not* require const& on the function signature. ...
7 years, 3 months ago (2013-09-13 00:30:00 UTC) #4
erikwright (departed)
https://codereview.chromium.org/23514056/diff/1/base/callback_registry.h File base/callback_registry.h (right): https://codereview.chromium.org/23514056/diff/1/base/callback_registry.h#newcode201 base/callback_registry.h:201: remove blanks https://codereview.chromium.org/23514056/diff/1/base/callback_registry.h#newcode214 base/callback_registry.h:214: void Notify(const A1& a1) { ...
7 years, 3 months ago (2013-09-13 15:05:55 UTC) #5
awong
On Fri, Sep 13, 2013 at 8:05 AM, <erikwright@chromium.org> wrote: > > https://codereview.chromium.**org/23514056/diff/1/base/** > callback_registry.h<https://codereview.chromium.org/23514056/diff/1/base/callback_registry.h> ...
7 years, 3 months ago (2013-09-13 16:08:20 UTC) #6
Cait (Slow)
https://codereview.chromium.org/23514056/diff/1/base/callback_registry.h File base/callback_registry.h (right): https://codereview.chromium.org/23514056/diff/1/base/callback_registry.h#newcode201 base/callback_registry.h:201: On 2013/09/13 15:05:56, erikwright wrote: > remove blanks Done. ...
7 years, 3 months ago (2013-09-13 19:07:58 UTC) #7
awong
On 2013/09/13 19:07:58, Cait Phillips wrote: > https://codereview.chromium.org/23514056/diff/1/base/callback_registry.h > File base/callback_registry.h (right): > > https://codereview.chromium.org/23514056/diff/1/base/callback_registry.h#newcode201 ...
7 years, 3 months ago (2013-09-13 19:10:21 UTC) #8
Cait (Slow)
On 2013/09/13 19:10:21, awong wrote: > On 2013/09/13 19:07:58, Cait Phillips wrote: > > https://codereview.chromium.org/23514056/diff/1/base/callback_registry.h ...
7 years, 3 months ago (2013-09-13 19:21:35 UTC) #9
awong
On 2013/09/13 19:21:35, Cait Phillips wrote: > On 2013/09/13 19:10:21, awong wrote: > > On ...
7 years, 3 months ago (2013-09-13 19:24:44 UTC) #10
Cait (Slow)
Albert: PTAL. I added the CallbackParamTraits. Will work on adding some non-compile tests to enforce ...
7 years, 3 months ago (2013-09-16 18:36:47 UTC) #11
erikwright (departed)
https://codereview.chromium.org/23514056/diff/21001/base/callback_registry.h File base/callback_registry.h (right): https://codereview.chromium.org/23514056/diff/21001/base/callback_registry.h#newcode182 base/callback_registry.h:182: template <typename Sig> class CallbackRegistry; blank between decl and ...
7 years, 3 months ago (2013-09-17 18:21:48 UTC) #12
awong
https://codereview.chromium.org/23514056/diff/21001/base/callback_registry.h File base/callback_registry.h (right): https://codereview.chromium.org/23514056/diff/21001/base/callback_registry.h#newcode213 base/callback_registry.h:213: void Notify(typename internal::CallbackParamTraits<A1>::ForwardType a1) { On 2013/09/17 18:21:49, erikwright ...
7 years, 3 months ago (2013-09-17 18:31:00 UTC) #13
erikwright (departed)
On 2013/09/17 18:31:00, awong wrote: > https://codereview.chromium.org/23514056/diff/21001/base/callback_registry.h > File base/callback_registry.h (right): > > https://codereview.chromium.org/23514056/diff/21001/base/callback_registry.h#newcode213 > ...
7 years, 3 months ago (2013-09-17 18:38:11 UTC) #14
awong
On Tue, Sep 17, 2013 at 11:38 AM, <erikwright@chromium.org> wrote: > On 2013/09/17 18:31:00, awong ...
7 years, 3 months ago (2013-09-17 18:44:15 UTC) #15
Cait (Slow)
PTAL. I'd like to get this CL in before there are too many uses of ...
7 years, 3 months ago (2013-09-19 17:29:56 UTC) #16
erikwright (departed)
LGTM once the test is sorted out.
7 years, 3 months ago (2013-09-19 18:46:46 UTC) #17
awong
waiting to hear from other base OWNERS whether they're okay with another pump file. https://codereview.chromium.org/23514056/diff/29001/base/callback_registry_unittest.cc ...
7 years, 3 months ago (2013-09-20 20:06:25 UTC) #18
awong
On 2013/09/20 20:06:25, awong wrote: > waiting to hear from other base OWNERS whether they're ...
7 years, 3 months ago (2013-09-20 23:58:12 UTC) #19
awong
On 2013/09/20 23:58:12, awong wrote: > On 2013/09/20 20:06:25, awong wrote: > > waiting to ...
7 years, 3 months ago (2013-09-20 23:58:29 UTC) #20
Cait (Slow)
On 2013/09/20 23:58:29, awong wrote: > On 2013/09/20 23:58:12, awong wrote: > > On 2013/09/20 ...
7 years, 3 months ago (2013-09-23 16:42:52 UTC) #21
awong
LGTM !
7 years, 3 months ago (2013-09-23 23:15:36 UTC) #22
jam
https://codereview.chromium.org/23514056/diff/40001/base/callback_registry.h File base/callback_registry.h (right): https://codereview.chromium.org/23514056/diff/40001/base/callback_registry.h#newcode37 base/callback_registry.h:37: // scoped_ptr<base::CallbackRegistry<void(const Foo&)>::Subscription> curious: there's no way to replace ...
7 years, 3 months ago (2013-09-24 02:16:30 UTC) #23
Cait (Slow)
https://codereview.chromium.org/23514056/diff/40001/base/callback_registry.h File base/callback_registry.h (right): https://codereview.chromium.org/23514056/diff/40001/base/callback_registry.h#newcode37 base/callback_registry.h:37: // scoped_ptr<base::CallbackRegistry<void(const Foo&)>::Subscription> On 2013/09/24 02:16:31, jam wrote: > ...
7 years, 3 months ago (2013-09-24 14:20:36 UTC) #24
jam
chrome lgtm https://codereview.chromium.org/23514056/diff/40001/base/callback_registry.h File base/callback_registry.h (right): https://codereview.chromium.org/23514056/diff/40001/base/callback_registry.h#newcode37 base/callback_registry.h:37: // scoped_ptr<base::CallbackRegistry<void(const Foo&)>::Subscription> On 2013/09/24 14:20:37, Cait ...
7 years, 3 months ago (2013-09-24 14:49:47 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/caitkp@chromium.org/23514056/48001
7 years, 3 months ago (2013-09-24 15:59:12 UTC) #26
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 3 months ago (2013-09-24 16:54:24 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/caitkp@chromium.org/23514056/44001
7 years, 3 months ago (2013-09-24 17:05:38 UTC) #28
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=157578
7 years, 3 months ago (2013-09-24 18:47:08 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/caitkp@chromium.org/23514056/44001
7 years, 3 months ago (2013-09-24 20:48:48 UTC) #30
commit-bot: I haz the power
Retried try job too often on linux_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_aura&number=80439
7 years, 3 months ago (2013-09-25 02:22:13 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/caitkp@chromium.org/23514056/95001
7 years, 3 months ago (2013-09-25 02:46:39 UTC) #32
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) content_browsertests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=171670
7 years, 2 months ago (2013-09-25 04:46:24 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/caitkp@chromium.org/23514056/95001
7 years, 2 months ago (2013-09-25 12:00:04 UTC) #34
commit-bot: I haz the power
Retried try job too often on linux_aura for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_aura&number=80850
7 years, 2 months ago (2013-09-25 13:10:36 UTC) #35
Cait (Slow)
7 years, 2 months ago (2013-09-25 13:56:28 UTC) #36
Message was sent while issue was closed.
Committed patchset #8 manually as r225184 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698