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

Unified Diff: chrome/common/mac/mock_launchd.cc

Issue 1880143002: Convert chrome/common to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . 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 | « chrome/common/mac/mock_launchd.h ('k') | chrome/common/multi_process_lock_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/mac/mock_launchd.cc
diff --git a/chrome/common/mac/mock_launchd.cc b/chrome/common/mac/mock_launchd.cc
index 2453335c29ead13b1c93da58b77c2df95e851bad..786654123cd384dd9abe477a5631f203ca16bcc3 100644
--- a/chrome/common/mac/mock_launchd.cc
+++ b/chrome/common/mac/mock_launchd.cc
@@ -10,6 +10,8 @@
#include <sys/socket.h>
#include <sys/un.h>
+#include <memory>
+
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/mac/foundation_util.h"
@@ -109,7 +111,7 @@ MockLaunchd::~MockLaunchd() {
CFDictionaryRef MockLaunchd::CopyJobDictionary(CFStringRef label) {
if (!as_service_) {
- scoped_ptr<MultiProcessLock> running_lock(
+ std::unique_ptr<MultiProcessLock> running_lock(
TakeNamedLock(pipe_name_, false));
if (running_lock.get())
return NULL;
« no previous file with comments | « chrome/common/mac/mock_launchd.h ('k') | chrome/common/multi_process_lock_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698