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

Issue 1090243003: Move ScopedFileDescriptor to dbus/file_descriptor.h (Closed)

Created:
5 years, 8 months ago by Chris Masone
Modified:
5 years, 8 months ago
CC:
chromium-reviews, stevenjb+watch_chromium.org, oshima+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move ScopedFileDescriptor to dbus/file_descriptor.h ScopedFileDescriptor was initially introduced to facilitate the management of a 'lifeline' FD used when asking permission_broker to open a port in the device's firewall on CrOS. It's actually a scoped wrapper around DBus::FileDescriptor, not a platform file descriptor. I would like to use it to facilitate some other similar functionality in which I create a pipe and pass one end over DBus, so it seems like a good idea to move ScopedFileDescriptor into the dbus library directly. BUG=chromium:481340 TEST=FirewallHole unit tests still pass STATUS=Fixed R=keybuk, reillyg, stevenjb Committed: https://crrev.com/b44fbaabbe9f91e63ad8aa164609a6b31e0de57e Cr-Commit-Position: refs/heads/master@{#327089}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -31 lines) Patch
M chromeos/network/firewall_hole.h View 3 chunks +6 lines, -17 lines 0 comments Download
M chromeos/network/firewall_hole.cc View 5 chunks +7 lines, -14 lines 0 comments Download
M dbus/file_descriptor.h View 3 chunks +10 lines, -0 lines 0 comments Download
M dbus/file_descriptor.cc View 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (1 generated)
Chris Masone
Steven added for chromeos/ OWNER review. Scott, please look at the code under dbus/ reillyg@, ...
5 years, 8 months ago (2015-04-25 21:15:38 UTC) #1
Reilly Grant (use Gerrit)
lgtm If the FirewallHole unit tests pass then you're good.
5 years, 8 months ago (2015-04-25 21:57:30 UTC) #2
stevenjb
lgtm
5 years, 8 months ago (2015-04-27 16:48:09 UTC) #3
keybuk
lgtm
5 years, 8 months ago (2015-04-27 18:02:45 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1090243003/1
5 years, 8 months ago (2015-04-27 18:06:09 UTC) #6
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 8 months ago (2015-04-27 18:51:12 UTC) #7
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/b44fbaabbe9f91e63ad8aa164609a6b31e0de57e Cr-Commit-Position: refs/heads/master@{#327089}
5 years, 8 months ago (2015-04-27 18:52:13 UTC) #8
spang
A revert of this CL (patchset #1 id:1) has been created in https://codereview.chromium.org/1108893003/ by spang@chromium.org. ...
5 years, 8 months ago (2015-04-27 19:44:06 UTC) #9
Chris Masone
On 2015/04/27 19:44:06, spang wrote: > A revert of this CL (patchset #1 id:1) has ...
5 years, 8 months ago (2015-04-27 19:45:24 UTC) #10
stevenjb
5 years, 8 months ago (2015-04-27 19:49:05 UTC) #11
Message was sent while issue was closed.
On 2015/04/27 19:45:24, Chris Masone wrote:
> On 2015/04/27 19:44:06, spang wrote:
> > A revert of this CL (patchset #1 id:1) has been created in
> > https://codereview.chromium.org/1108893003/ by mailto:spang@chromium.org.
> > 
> > The reason for reverting is: Breaks shared_library build with broken
exports:
> > 
> > ./../dbus/dbus_export.h:20:65: error: ignoring attributes applied to class
> type
> > 'scoped_ptr<dbus::FileDescriptor, dbus::FileDescriptor::Deleter>' outside of
> > definition [-Werror=attributes]
> >  #define CHROME_DBUS_EXPORT __attribute__((visibility("default")))
> >                                                                  ^
> > ../../dbus/file_descriptor.h:81:57: note: in expansion of macro
> > 'CHROME_DBUS_EXPORT'
> >      scoped_ptr<FileDescriptor, FileDescriptor::Deleter>
CHROME_DBUS_EXPORT;.
> 
> Why did none of the trybots catch this?

Sadly we don't have a Chrome OS component build in the CQ trybots. I have been
bit by this a few times myself.

Powered by Google App Engine
This is Rietveld 408576698