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

Unified Diff: chrome/common/service_process_util_mac.mm

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/service_process_util_linux.cc ('k') | chrome/common/service_process_util_posix.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/service_process_util_mac.mm
diff --git a/chrome/common/service_process_util_mac.mm b/chrome/common/service_process_util_mac.mm
index 45be8c6b41a0b1bb625f1ea8817d4d1209426ac9..ffeed0d0ee26ba1cd652e33840f5d63ec47c5515 100644
--- a/chrome/common/service_process_util_mac.mm
+++ b/chrome/common/service_process_util_mac.mm
@@ -2,11 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/common/service_process_util_posix.h"
-
#import <Foundation/Foundation.h>
#include <launch.h>
+#include <memory>
#include <vector>
#include "base/bind.h"
@@ -27,6 +26,7 @@
#include "chrome/common/chrome_paths.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/mac/launchd.h"
+#include "chrome/common/service_process_util_posix.h"
#include "components/version_info/version_info.h"
#include "ipc/unix_domain_socket_util.h"
@@ -306,7 +306,7 @@ bool ServiceProcessState::StateData::WatchExecutable() {
base::FilePath executable_path =
base::FilePath([exe_path fileSystemRepresentation]);
- scoped_ptr<ExecFilePathWatcherCallback> callback(
+ std::unique_ptr<ExecFilePathWatcherCallback> callback(
new ExecFilePathWatcherCallback);
if (!callback->Init(executable_path)) {
DLOG(ERROR) << "executable_watcher.Init " << executable_path.value();
« no previous file with comments | « chrome/common/service_process_util_linux.cc ('k') | chrome/common/service_process_util_posix.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698