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

Issue 1170283005: Make dbus::FileDescriptor a Pass()-movable type. (Closed)

Created:
5 years, 6 months ago by Reilly Grant (use Gerrit)
Modified:
5 years, 6 months ago
CC:
chromium-reviews, Alex Vakulenko
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make dbus::FileDescriptor a Pass()-movable type. This will make it possible to return a dbus::FileDescriptor from a function and bind it to a callback without wrapping it in a dbus::ScopedFileDescriptor. This will allow us to fix the generated DBus bindings to support methods that have file descriptors as output parameters. BUG=496469 Committed: https://crrev.com/8f22f63f0bb566682278d93b896dfc68fa731434 Cr-Commit-Position: refs/heads/master@{#333901}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Simplify by swapping values. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -2 lines) Patch
M dbus/file_descriptor.h View 1 4 chunks +11 lines, -2 lines 0 comments Download
M dbus/file_descriptor.cc View 1 4 chunks +20 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (4 generated)
Reilly Grant (use Gerrit)
Please take a look at this patch.
5 years, 6 months ago (2015-06-10 18:39:05 UTC) #2
Alex Vakulenko
https://codereview.chromium.org/1170283005/diff/1/dbus/file_descriptor.cc File dbus/file_descriptor.cc (right): https://codereview.chromium.org/1170283005/diff/1/dbus/file_descriptor.cc#newcode35 dbus/file_descriptor.cc:35: value_ = other.object->value_; I think here you should do ...
5 years, 6 months ago (2015-06-10 18:55:47 UTC) #4
Reilly Grant (use Gerrit)
https://codereview.chromium.org/1170283005/diff/1/dbus/file_descriptor.cc File dbus/file_descriptor.cc (right): https://codereview.chromium.org/1170283005/diff/1/dbus/file_descriptor.cc#newcode35 dbus/file_descriptor.cc:35: value_ = other.object->value_; On 2015/06/10 18:55:47, Alex Vakulenko wrote: ...
5 years, 6 months ago (2015-06-10 19:21:10 UTC) #5
stevenjb
Deferring to hashimoto@ for OWNERS review since he is generally more familiar with the DBus ...
5 years, 6 months ago (2015-06-10 19:32:30 UTC) #7
hashimoto
Could you add a BUG number to the change description, or put BUG=None? Eventually we ...
5 years, 6 months ago (2015-06-11 05:33:07 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1170283005/20001
5 years, 6 months ago (2015-06-11 06:16:00 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 6 months ago (2015-06-11 06:19:23 UTC) #11
commit-bot: I haz the power
5 years, 6 months ago (2015-06-11 06:20:11 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/8f22f63f0bb566682278d93b896dfc68fa731434
Cr-Commit-Position: refs/heads/master@{#333901}

Powered by Google App Engine
This is Rietveld 408576698