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

Unified Diff: ipc/attachment_broker_unprivileged_mac.cc

Issue 1411523006: mac: Make Mach port scopers better ScopedGenerics (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ipc/attachment_broker_privileged_mac_unittest.cc ('k') | sandbox/mac/bootstrap_sandbox.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/attachment_broker_unprivileged_mac.cc
diff --git a/ipc/attachment_broker_unprivileged_mac.cc b/ipc/attachment_broker_unprivileged_mac.cc
index 65d26f245b01d8fb19ea655d3117992ea4693765..144028d0d8e4c7c1749e6faa0155e390e08622ab 100644
--- a/ipc/attachment_broker_unprivileged_mac.cc
+++ b/ipc/attachment_broker_unprivileged_mac.cc
@@ -90,7 +90,8 @@ void AttachmentBrokerUnprivilegedMac::OnMachPortHasBeenDuplicated(
}
base::mac::ScopedMachReceiveRight message_port(wire_format.mach_port);
- base::mac::ScopedMachSendRight memory_object(ReceiveMachPort(message_port));
+ base::mac::ScopedMachSendRight memory_object(
+ ReceiveMachPort(message_port.get()));
IPC::internal::MachPortAttachmentMac::WireFormat translated_wire_format(
memory_object.release(), wire_format.destination_process,
wire_format.attachment_id);
« no previous file with comments | « ipc/attachment_broker_privileged_mac_unittest.cc ('k') | sandbox/mac/bootstrap_sandbox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698