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

Unified Diff: remoting/host/host_window_proxy.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/host_window_proxy.h ('k') | remoting/host/input_injector.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/host_window_proxy.cc
diff --git a/remoting/host/host_window_proxy.cc b/remoting/host/host_window_proxy.cc
index 60dd0a1f96c6bf3722d343ed09b02c2f92d90f33..862398be672d8f305bc84baf4c0d57099e33f16f 100644
--- a/remoting/host/host_window_proxy.cc
+++ b/remoting/host/host_window_proxy.cc
@@ -23,7 +23,7 @@ class HostWindowProxy::Core
public:
Core(scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner,
scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner,
- scoped_ptr<HostWindow> host_window);
+ std::unique_ptr<HostWindow> host_window);
// Starts |host_window_| on the |ui_task_runner_| thread.
void Start(const base::WeakPtr<ClientSessionControl>& client_session_control);
@@ -59,7 +59,7 @@ class HostWindowProxy::Core
base::WeakPtr<ClientSessionControl> client_session_control_;
// The wrapped |HostWindow| instance running on the |ui_task_runner_| thread.
- scoped_ptr<HostWindow> host_window_;
+ std::unique_ptr<HostWindow> host_window_;
// Used to create the control pointer passed to |host_window_|.
base::WeakPtrFactory<ClientSessionControl> weak_factory_;
@@ -70,7 +70,7 @@ class HostWindowProxy::Core
HostWindowProxy::HostWindowProxy(
scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner,
scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner,
- scoped_ptr<HostWindow> host_window) {
+ std::unique_ptr<HostWindow> host_window) {
DCHECK(caller_task_runner->BelongsToCurrentThread());
// Detach |host_window| from the calling thread so that |Core| could run it on
@@ -95,7 +95,7 @@ void HostWindowProxy::Start(
HostWindowProxy::Core::Core(
scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner,
scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner,
- scoped_ptr<HostWindow> host_window)
+ std::unique_ptr<HostWindow> host_window)
: caller_task_runner_(caller_task_runner),
ui_task_runner_(ui_task_runner),
host_window_(std::move(host_window)),
« no previous file with comments | « remoting/host/host_window_proxy.h ('k') | remoting/host/input_injector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698