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

Unified Diff: chrome/common/service_process_util.h

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/safe_browsing/zip_analyzer.cc ('k') | chrome/common/service_process_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/service_process_util.h
diff --git a/chrome/common/service_process_util.h b/chrome/common/service_process_util.h
index 3304a89e8e242726b3fffa54343c4fef2dc5bc9e..10769cf28ad3b09415795afa93e4c4cb4e892f52 100644
--- a/chrome/common/service_process_util.h
+++ b/chrome/common/service_process_util.h
@@ -5,10 +5,10 @@
#ifndef CHROME_COMMON_SERVICE_PROCESS_UTIL_H_
#define CHROME_COMMON_SERVICE_PROCESS_UTIL_H_
+#include <memory>
#include <string>
#include "base/callback_forward.h"
-#include "base/memory/scoped_ptr.h"
#include "base/memory/shared_memory.h"
#include "base/process/process.h"
#include "build/build_config.h"
@@ -69,7 +69,7 @@ bool ForceServiceProcessShutdown(const std::string& version,
base::ProcessId process_id);
// Creates command-line to run the service process.
-scoped_ptr<base::CommandLine> CreateServiceProcessCommandLine();
+std::unique_ptr<base::CommandLine> CreateServiceProcessCommandLine();
// This is a class that is used by the service process to signal events and
// share data with external clients. This class lives in this file because the
@@ -129,8 +129,8 @@ class ServiceProcessState {
// platform dependent.
struct StateData;
StateData* state_;
- scoped_ptr<base::SharedMemory> shared_mem_service_data_;
- scoped_ptr<base::CommandLine> autorun_command_line_;
+ std::unique_ptr<base::SharedMemory> shared_mem_service_data_;
+ std::unique_ptr<base::CommandLine> autorun_command_line_;
};
#endif // CHROME_COMMON_SERVICE_PROCESS_UTIL_H_
« no previous file with comments | « chrome/common/safe_browsing/zip_analyzer.cc ('k') | chrome/common/service_process_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698