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

Unified Diff: remoting/host/win/wts_session_process_delegate.cc

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/wts_session_process_delegate.h ('k') | remoting/protocol/audio_reader.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/win/wts_session_process_delegate.cc
diff --git a/remoting/host/win/wts_session_process_delegate.cc b/remoting/host/win/wts_session_process_delegate.cc
index 9bd58bfe69fc81d81c773c65070af3484e4b8357..be23baf35113004547e62738ad398810627a968f 100644
--- a/remoting/host/win/wts_session_process_delegate.cc
+++ b/remoting/host/win/wts_session_process_delegate.cc
@@ -50,7 +50,7 @@ class WtsSessionProcessDelegate::Core
public IPC::Listener {
public:
Core(scoped_refptr<base::SingleThreadTaskRunner> io_task_runner,
- scoped_ptr<base::CommandLine> target,
+ std::unique_ptr<base::CommandLine> target,
bool launch_elevated,
const std::string& channel_security);
@@ -111,7 +111,7 @@ class WtsSessionProcessDelegate::Core
// 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_;
// Security descriptor (as SDDL) to be applied to |channel_|.
std::string channel_security_;
@@ -138,7 +138,7 @@ class WtsSessionProcessDelegate::Core
base::win::ScopedHandle session_token_;
// Command line of the launched process.
- scoped_ptr<base::CommandLine> target_command_;
+ std::unique_ptr<base::CommandLine> target_command_;
// The handle of the worker process, if launched.
base::win::ScopedHandle worker_process_;
@@ -148,7 +148,7 @@ class WtsSessionProcessDelegate::Core
WtsSessionProcessDelegate::Core::Core(
scoped_refptr<base::SingleThreadTaskRunner> io_task_runner,
- scoped_ptr<base::CommandLine> target_command,
+ std::unique_ptr<base::CommandLine> target_command,
bool launch_elevated,
const std::string& channel_security)
: caller_task_runner_(base::ThreadTaskRunnerHandle::Get()),
@@ -382,11 +382,9 @@ void WtsSessionProcessDelegate::Core::DoLaunchProcess() {
}
// Wrap the pipe into an IPC channel.
- scoped_ptr<IPC::ChannelProxy> channel(
- IPC::ChannelProxy::Create(IPC::ChannelHandle(pipe.Get()),
- IPC::Channel::MODE_SERVER,
- this,
- io_task_runner_));
+ std::unique_ptr<IPC::ChannelProxy> channel(IPC::ChannelProxy::Create(
+ IPC::ChannelHandle(pipe.Get()), IPC::Channel::MODE_SERVER, this,
+ io_task_runner_));
// Pass the name of the IPC channel to use.
command_line.AppendSwitchNative(kDaemonPipeSwitchName,
@@ -529,7 +527,7 @@ void WtsSessionProcessDelegate::Core::ReportProcessLaunched(
WtsSessionProcessDelegate::WtsSessionProcessDelegate(
scoped_refptr<base::SingleThreadTaskRunner> io_task_runner,
- scoped_ptr<base::CommandLine> target_command,
+ std::unique_ptr<base::CommandLine> target_command,
bool launch_elevated,
const std::string& channel_security) {
core_ = new Core(io_task_runner, std::move(target_command), launch_elevated,
« no previous file with comments | « remoting/host/win/wts_session_process_delegate.h ('k') | remoting/protocol/audio_reader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698