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

Issue 1501793003: Rename MOVE_ONLY_TYPE_WITH_MOVE_CONSTRUCTOR_FOR_CPP_03 (Closed)

Created:
5 years ago by danakj
Modified:
5 years ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, chromium-reviews, darin (slow to review), Dan Beam, gavinp+memory_chromium.org, piman, qsr+mojo_chromium.org, tzik, viettrungluu+watch_chromium.org, vmpstr+watch_chromium.org, yzshen+watch_chromium.org, sammc
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Rename MOVE_ONLY_TYPE_WITH_MOVE_CONSTRUCTOR_FOR_CPP_03 This renames the macro to be more standard and express its intent and relationship to DISALLOW_COPY_AND_ASSIGN. It renames the macro to DISALLOW_COPY_AND_ASSIGN_WITH_MOVE_FOR_BIND, as it does what the old DISALLOW_COPY_AND_ASSIGN does, but also whitelists the type for Bind/Callback to try move it. R=Nico TBR=sky BUG=561749 Committed: https://crrev.com/6ba4c1e61a03cba5dfd7a53da70437aa61583a7f Cr-Commit-Position: refs/heads/master@{#363712}

Patch Set 1 #

Total comments: 3

Patch Set 2 : move-name: comments #

Total comments: 4

Patch Set 3 : move-name: todos #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -116 lines) Patch
M PRESUBMIT.py View 2 chunks +0 lines, -26 lines 0 comments Download
M PRESUBMIT_test.py View 1 chunk +0 lines, -39 lines 0 comments Download
M base/memory/scoped_ptr.h View 2 chunks +2 lines, -2 lines 0 comments Download
M base/move.h View 1 2 1 chunk +17 lines, -40 lines 0 comments Download
M base/scoped_generic.h View 1 chunk +1 line, -1 line 0 comments Download
M mojo/edk/embedder/scoped_platform_handle.h View 1 chunk +1 line, -1 line 0 comments Download
M mojo/public/cpp/bindings/associated_interface_ptr.h View 1 chunk +1 line, -1 line 0 comments Download
M mojo/public/cpp/bindings/associated_interface_ptr_info.h View 1 chunk +1 line, -1 line 0 comments Download
M mojo/public/cpp/bindings/associated_interface_request.h View 1 chunk +1 line, -1 line 0 comments Download
M mojo/public/cpp/bindings/interface_ptr.h View 1 chunk +1 line, -1 line 0 comments Download
M mojo/public/cpp/bindings/lib/scoped_interface_endpoint_handle.h View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/mojo/src/mojo/edk/embedder/scoped_platform_handle.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 35 (14 generated)
danakj
5 years ago (2015-12-04 21:49:55 UTC) #1
danakj
TBR=sky for mojo, search/replace of macro name
5 years ago (2015-12-04 21:50:15 UTC) #3
danakj
+phajdan.jr for PRESUBMIT, removing the roll-your-own IWYU for base/macros.h, it conflicts with this change. See ...
5 years ago (2015-12-04 21:51:33 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1501793003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1501793003/1
5 years ago (2015-12-04 21:54:41 UTC) #7
Nico
lgtm https://codereview.chromium.org/1501793003/diff/1/base/move.h File base/move.h (right): https://codereview.chromium.org/1501793003/diff/1/base/move.h#newcode55 base/move.h:55: #define DISALLOW_COPY_AND_ASSIGN_WITH_MOVE_FOR_BIND(type) \ What do you think is ...
5 years ago (2015-12-04 21:58:05 UTC) #8
danakj
https://codereview.chromium.org/1501793003/diff/1/base/move.h File base/move.h (right): https://codereview.chromium.org/1501793003/diff/1/base/move.h#newcode55 base/move.h:55: #define DISALLOW_COPY_AND_ASSIGN_WITH_MOVE_FOR_BIND(type) \ On 2015/12/04 21:58:05, Nico wrote: > ...
5 years ago (2015-12-04 22:01:47 UTC) #9
danakj
I made the comment a lot simpler. Do you think this is better or worse ...
5 years ago (2015-12-04 22:07:41 UTC) #10
Nico
thanks, that's much better I think. (The below are optional and mostly internally dialog:) https://codereview.chromium.org/1501793003/diff/20001/base/move.h ...
5 years ago (2015-12-04 22:13:58 UTC) #11
dcheng
https://codereview.chromium.org/1501793003/diff/1/base/move.h File base/move.h (right): https://codereview.chromium.org/1501793003/diff/1/base/move.h#newcode55 base/move.h:55: #define DISALLOW_COPY_AND_ASSIGN_WITH_MOVE_FOR_BIND(type) \ On 2015/12/04 at 22:01:47, danakj (behind ...
5 years ago (2015-12-04 22:14:01 UTC) #13
Nico
On 2015/12/04 22:14:01, dcheng wrote: > https://codereview.chromium.org/1501793003/diff/1/base/move.h > File base/move.h (right): > > https://codereview.chromium.org/1501793003/diff/1/base/move.h#newcode55 > ...
5 years ago (2015-12-04 22:15:16 UTC) #14
danakj
On Fri, Dec 4, 2015 at 2:15 PM, <thakis@chromium.org> wrote: > On 2015/12/04 22:14:01, dcheng ...
5 years ago (2015-12-04 22:21:56 UTC) #15
dcheng
On 2015/12/04 at 22:21:56, danakj wrote: > On Fri, Dec 4, 2015 at 2:15 PM, ...
5 years ago (2015-12-04 22:28:21 UTC) #16
danakj
https://codereview.chromium.org/1501793003/diff/20001/base/move.h File base/move.h (right): https://codereview.chromium.org/1501793003/diff/20001/base/move.h#newcode13 base/move.h:13: // be used in Callbacks, use DISALLOW_COPY_AND_ASSIGN_WITH_MOVE_FOR_BIND. On 2015/12/04 ...
5 years ago (2015-12-04 22:28:34 UTC) #17
danakj
On Fri, Dec 4, 2015 at 2:28 PM, <dcheng@chromium.org> wrote: > On 2015/12/04 at 22:21:56, ...
5 years ago (2015-12-04 22:36:07 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1501793003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1501793003/40001
5 years ago (2015-12-04 22:48:29 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: win8_chromium_ng on tryserver.chromium.win (JOB_TIMED_OUT, no build URL) win_chromium_compile_dbg_ng on ...
5 years ago (2015-12-05 00:41:37 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1501793003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1501793003/40001
5 years ago (2015-12-07 18:59:34 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/104034)
5 years ago (2015-12-08 00:11:18 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1501793003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1501793003/40001
5 years ago (2015-12-08 00:42:43 UTC) #31
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years ago (2015-12-08 02:31:01 UTC) #33
commit-bot: I haz the power
5 years ago (2015-12-08 02:32:05 UTC) #35
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/6ba4c1e61a03cba5dfd7a53da70437aa61583a7f
Cr-Commit-Position: refs/heads/master@{#363712}

Powered by Google App Engine
This is Rietveld 408576698