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

Unified Diff: chrome/common/service_process_util_linux.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/service_process_util.cc ('k') | chrome/common/service_process_util_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/service_process_util_linux.cc
diff --git a/chrome/common/service_process_util_linux.cc b/chrome/common/service_process_util_linux.cc
index e2bcb656985861366d085f88d79e6b66eb3f9ee3..7d5ef7ea62bd59e0b69cce42d0d3c7a7b7dd827b 100644
--- a/chrome/common/service_process_util_linux.cc
+++ b/chrome/common/service_process_util_linux.cc
@@ -2,11 +2,11 @@
// 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"
-
#include <signal.h>
#include <unistd.h>
+#include <memory>
+
#include "base/base_paths.h"
#include "base/command_line.h"
#include "base/files/file_path.h"
@@ -15,6 +15,7 @@
#include "base/threading/platform_thread.h"
#include "chrome/common/auto_start_linux.h"
#include "chrome/common/multi_process_lock.h"
+#include "chrome/common/service_process_util_posix.h"
namespace {
@@ -61,7 +62,7 @@ IPC::ChannelHandle GetServiceProcessChannel() {
bool CheckServiceProcessReady() {
- scoped_ptr<MultiProcessLock> running_lock(TakeServiceRunningLock(false));
+ std::unique_ptr<MultiProcessLock> running_lock(TakeServiceRunningLock(false));
return running_lock.get() == NULL;
}
« no previous file with comments | « chrome/common/service_process_util.cc ('k') | chrome/common/service_process_util_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698