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

Unified Diff: base/mac/mach_port_broker.h

Issue 1852433005: Convert //base to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase after r384946 Created 4 years, 8 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 | « base/mac/dispatch_source_mach_unittest.cc ('k') | base/mac/scoped_authorizationref.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/mac/mach_port_broker.h
diff --git a/base/mac/mach_port_broker.h b/base/mac/mach_port_broker.h
index ba08b6f67f9715588aa7ef46b11a472da38cc24b..4554b6aec62ee90e740f3ce772635500c82f7b38 100644
--- a/base/mac/mach_port_broker.h
+++ b/base/mac/mach_port_broker.h
@@ -8,13 +8,13 @@
#include <mach/mach.h>
#include <map>
+#include <memory>
#include <string>
#include "base/base_export.h"
#include "base/mac/dispatch_source_mach.h"
#include "base/mac/scoped_mach_port.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/process/port_provider_mac.h"
#include "base/process/process_handle.h"
#include "base/synchronization/lock.h"
@@ -91,7 +91,7 @@ class BASE_EXPORT MachPortBroker : public base::PortProvider {
base::mac::ScopedMachReceiveRight server_port_;
// The dispatch source and queue on which Mach messages will be received.
- scoped_ptr<base::DispatchSourceMach> dispatch_source_;
+ std::unique_ptr<base::DispatchSourceMach> dispatch_source_;
// Stores mach info for every process in the broker.
typedef std::map<base::ProcessHandle, mach_port_t> MachMap;
« no previous file with comments | « base/mac/dispatch_source_mach_unittest.cc ('k') | base/mac/scoped_authorizationref.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698