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

Unified Diff: remoting/host/win/worker_process_launcher.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/unprivileged_process_delegate.cc ('k') | remoting/host/win/worker_process_launcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/win/worker_process_launcher.h
diff --git a/remoting/host/win/worker_process_launcher.h b/remoting/host/win/worker_process_launcher.h
index e263509e5ceab81f51d88b724850c47e8082522b..9e3ff2fd4f5eea76dddcd806d8365ba3a9e776cd 100644
--- a/remoting/host/win/worker_process_launcher.h
+++ b/remoting/host/win/worker_process_launcher.h
@@ -7,11 +7,12 @@
#include <stdint.h>
+#include <memory>
+
#include "base/callback.h"
#include "base/compiler_specific.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/timer/timer.h"
#include "base/win/object_watcher.h"
@@ -66,7 +67,7 @@ class WorkerProcessLauncher
// Creates the launcher that will use |launcher_delegate| to manage the worker
// process and |ipc_handler| to handle IPCs. The caller must ensure that
// |ipc_handler| must outlive this object.
- WorkerProcessLauncher(scoped_ptr<Delegate> launcher_delegate,
+ WorkerProcessLauncher(std::unique_ptr<Delegate> launcher_delegate,
WorkerProcessIpcDelegate* ipc_handler);
~WorkerProcessLauncher() override;
@@ -130,7 +131,7 @@ class WorkerProcessLauncher
WorkerProcessIpcDelegate* ipc_handler_;
// Implements specifics of launching a worker process.
- scoped_ptr<WorkerProcessLauncher::Delegate> launcher_delegate_;
+ std::unique_ptr<WorkerProcessLauncher::Delegate> launcher_delegate_;
// Keeps the exit code of the worker process after it was closed. The exit
// code is used to determine whether the process has to be restarted.
« no previous file with comments | « remoting/host/win/unprivileged_process_delegate.cc ('k') | remoting/host/win/worker_process_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698