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: sandbox/mac/launchd_interception_server.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 | « sandbox/mac/bootstrap_sandbox.h ('k') | sandbox/mac/xpc_message_server.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/mac/launchd_interception_server.cc
diff --git a/sandbox/mac/launchd_interception_server.cc b/sandbox/mac/launchd_interception_server.cc
index f466e77d4bc18d608d5bf7227d2fda104a650fcc..6ce61f6cddeeb8ec7e89cc8e92c9114c3fa36d2f 100644
--- a/sandbox/mac/launchd_interception_server.cc
+++ b/sandbox/mac/launchd_interception_server.cc
@@ -44,12 +44,12 @@ bool LaunchdInterceptionServer::Initialize(mach_port_t server_receive_right) {
return false;
}
sandbox_port_.reset(port);
- if ((kr = mach_port_insert_right(task, sandbox_port_, sandbox_port_,
- MACH_MSG_TYPE_MAKE_SEND) != KERN_SUCCESS)) {
+ if ((kr = mach_port_insert_right(task, sandbox_port_.get(),
+ sandbox_port_.get(), MACH_MSG_TYPE_MAKE_SEND) != KERN_SUCCESS)) {
MACH_LOG(ERROR, kr) << "Failed to allocate dummy sandbox port send right.";
return false;
}
- sandbox_send_port_.reset(sandbox_port_);
+ sandbox_send_port_.reset(sandbox_port_.get());
if (base::mac::IsOSYosemiteOrLater()) {
message_server_.reset(new XPCMessageServer(this, server_receive_right));
« no previous file with comments | « sandbox/mac/bootstrap_sandbox.h ('k') | sandbox/mac/xpc_message_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698