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

Unified Diff: remoting/host/win/unprivileged_process_delegate.h

Issue 1864213002: Convert //remoting to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mac IWYU 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 | « remoting/host/win/session_input_injector.cc ('k') | remoting/host/win/unprivileged_process_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/win/unprivileged_process_delegate.h
diff --git a/remoting/host/win/unprivileged_process_delegate.h b/remoting/host/win/unprivileged_process_delegate.h
index 086f911808ce9a7708b40bb18b3add0ca10d67b1..5059234ff4dd596a6567c141f913ee239cb7e1ca 100644
--- a/remoting/host/win/unprivileged_process_delegate.h
+++ b/remoting/host/win/unprivileged_process_delegate.h
@@ -7,11 +7,12 @@
#include <stdint.h>
+#include <memory>
+
#include "base/compiler_specific.h"
#include "base/files/file_path.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
#include "base/threading/non_thread_safe.h"
#include "base/win/scoped_handle.h"
#include "ipc/ipc_listener.h"
@@ -38,7 +39,7 @@ class UnprivilegedProcessDelegate
public:
UnprivilegedProcessDelegate(
scoped_refptr<base::SingleThreadTaskRunner> io_task_runner,
- scoped_ptr<base::CommandLine> target_command);
+ std::unique_ptr<base::CommandLine> target_command);
~UnprivilegedProcessDelegate() override;
// WorkerProcessLauncher::Delegate implementation.
@@ -60,11 +61,11 @@ class UnprivilegedProcessDelegate
scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_;
// Command line of the launched process.
- scoped_ptr<base::CommandLine> target_command_;
+ std::unique_ptr<base::CommandLine> target_command_;
// The server end of the IPC channel used to communicate to the worker
// process.
- scoped_ptr<IPC::ChannelProxy> channel_;
+ std::unique_ptr<IPC::ChannelProxy> channel_;
WorkerProcessLauncher* event_handler_;
« no previous file with comments | « remoting/host/win/session_input_injector.cc ('k') | remoting/host/win/unprivileged_process_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698