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

Issue 610423003: [Base] Use variadic template in base/callback.h (wave 1) (Closed)

Created:
6 years, 2 months ago by tzik
Modified:
6 years, 1 month ago
Reviewers:
Aaron Boodman, Nico, awong
CC:
chromium-reviews, erikwright+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

[Base] Use variadic template in base/callback.h Replace pump.py generated base/callback.h with variadic template version. BUG=433164 Committed: https://crrev.com/c87149e666acfe39d49d7f30a5fd9acc7ef085ea Cr-Commit-Position: refs/heads/master@{#304948}

Patch Set 1 #

Patch Set 2 : workaround for win toolchain #

Total comments: 4

Patch Set 3 : strip an empty line. s/type/Type/. +TODO #

Patch Set 4 : fix comment #

Patch Set 5 : strip another empty line #

Total comments: 3

Patch Set 6 : #

Patch Set 7 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -809 lines) Patch
M base/callback.h View 1 2 3 4 4 chunks +8 lines, -367 lines 0 comments Download
D base/callback.h.pump View 1 chunk +0 lines, -436 lines 0 comments Download
M base/callback_internal.h View 1 2 3 4 5 6 5 chunks +35 lines, -6 lines 0 comments Download

Messages

Total messages: 25 (5 generated)
tzik
Hi, Albert. PTL. C++11 variadic template seems ready to use in chrome. I tried to ...
6 years, 2 months ago (2014-09-29 18:44:02 UTC) #2
awong
LGTM Hell yes. Thank you for doing this.
6 years, 2 months ago (2014-09-29 18:51:48 UTC) #3
awong
On 2014/09/29 18:51:48, awong (On leave) wrote: > LGTM > > Hell yes. Thank you ...
6 years, 2 months ago (2014-09-29 18:52:28 UTC) #4
tzik
On 2014/09/29 18:52:28, awong (On leave) wrote: > On 2014/09/29 18:51:48, awong (On leave) wrote: ...
6 years, 2 months ago (2014-09-30 04:49:36 UTC) #5
tzik
PTAL. I added a workaround to CallbackParamTraits for MSVC 2013. It seems we can't use ...
6 years, 2 months ago (2014-09-30 09:30:42 UTC) #6
Nico
https://codereview.chromium.org/610423003/diff/20001/base/callback_internal.h File base/callback_internal.h (right): https://codereview.chromium.org/610423003/diff/20001/base/callback_internal.h#newcode99 base/callback_internal.h:99: struct CallbackParamTraitsForNonMoveOnlyType; Should there be a "TODO: Use a ...
6 years, 2 months ago (2014-09-30 11:41:04 UTC) #8
Nico
(independent of your answer to my question, I like this cl.) On Tue, Sep 30, ...
6 years, 2 months ago (2014-09-30 12:00:44 UTC) #9
tzik
https://codereview.chromium.org/610423003/diff/20001/base/callback_internal.h File base/callback_internal.h (right): https://codereview.chromium.org/610423003/diff/20001/base/callback_internal.h#newcode99 base/callback_internal.h:99: struct CallbackParamTraitsForNonMoveOnlyType; On 2014/09/30 11:41:04, Nico (away until Oct ...
6 years, 2 months ago (2014-09-30 14:43:10 UTC) #10
tzik
Surprisingly, monolithic version of .pump replacement CL compiles on Windows without additional workaround! https://codereview.chromium.org/610313003/#ps120001
6 years, 2 months ago (2014-09-30 15:00:00 UTC) #11
Aaron Boodman
https://codereview.chromium.org/610423003/diff/20001/base/callback_internal.h File base/callback_internal.h (right): https://codereview.chromium.org/610423003/diff/20001/base/callback_internal.h#newcode84 base/callback_internal.h:84: // Returns Then as |type| if condition is true. ...
6 years, 2 months ago (2014-09-30 21:05:37 UTC) #13
tzik
https://codereview.chromium.org/610423003/diff/20001/base/callback_internal.h File base/callback_internal.h (right): https://codereview.chromium.org/610423003/diff/20001/base/callback_internal.h#newcode84 base/callback_internal.h:84: // Returns Then as |type| if condition is true. ...
6 years, 2 months ago (2014-10-01 01:22:41 UTC) #14
Aaron Boodman
lgtm
6 years, 2 months ago (2014-10-03 23:26:16 UTC) #15
awong
https://codereview.chromium.org/610423003/diff/80001/base/callback.h File base/callback.h (right): https://codereview.chromium.org/610423003/diff/80001/base/callback.h#newcode411 base/callback.h:411: #endif // BASE_CALLBACK_H_ Oooh...nice catch. https://codereview.chromium.org/610423003/diff/80001/base/callback_internal.h File base/callback_internal.h (right): ...
6 years, 2 months ago (2014-10-07 18:45:39 UTC) #16
tzik
https://codereview.chromium.org/610423003/diff/80001/base/callback_internal.h File base/callback_internal.h (right): https://codereview.chromium.org/610423003/diff/80001/base/callback_internal.h#newcode103 base/callback_internal.h:103: // with default values. On 2014/10/07 18:45:39, awong (On ...
6 years, 2 months ago (2014-10-08 15:56:11 UTC) #17
tzik
Albert: Could you take another look to this? I made a non-trivial change for MSVC2013 ...
6 years, 2 months ago (2014-10-14 06:47:54 UTC) #18
tzik
Now the Windows toolchain is updated to MSVS Community 2013! That should compile this correctly. ...
6 years, 1 month ago (2014-11-17 07:38:29 UTC) #20
Nico
diff from patch set 1 to 2 lgtm (albert seems away) Let's get this in, ...
6 years, 1 month ago (2014-11-20 00:00:18 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/610423003/120001
6 years, 1 month ago (2014-11-20 00:06:01 UTC) #23
commit-bot: I haz the power
Committed patchset #7 (id:120001)
6 years, 1 month ago (2014-11-20 01:08:30 UTC) #24
commit-bot: I haz the power
6 years, 1 month ago (2014-11-20 01:09:14 UTC) #25
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/c87149e666acfe39d49d7f30a5fd9acc7ef085ea
Cr-Commit-Position: refs/heads/master@{#304948}

Powered by Google App Engine
This is Rietveld 408576698