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

Unified Diff: remoting/client/chromoting_client_runtime.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/client/chromoting_client_runtime.h ('k') | remoting/client/chromoting_client_runtime_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/chromoting_client_runtime.cc
diff --git a/remoting/client/chromoting_client_runtime.cc b/remoting/client/chromoting_client_runtime.cc
index db486f617a8251135306e16d04d5241234dfbe11..a603eea0ec39440c6ffdfc009cc2e00bcca0d59b 100644
--- a/remoting/client/chromoting_client_runtime.cc
+++ b/remoting/client/chromoting_client_runtime.cc
@@ -6,12 +6,13 @@
#include "base/bind.h"
#include "base/logging.h"
+#include "base/memory/ptr_util.h"
#include "base/message_loop/message_loop.h"
#include "remoting/base/url_request_context_getter.h"
namespace remoting {
-scoped_ptr<ChromotingClientRuntime> ChromotingClientRuntime::Create(
+std::unique_ptr<ChromotingClientRuntime> ChromotingClientRuntime::Create(
base::MessageLoopForUI* ui_loop) {
DCHECK(ui_loop);
@@ -33,7 +34,7 @@ scoped_ptr<ChromotingClientRuntime> ChromotingClientRuntime::Create(
scoped_refptr<net::URLRequestContextGetter> url_requester =
new URLRequestContextGetter(network_task_runner, file_task_runner);
- return make_scoped_ptr(new ChromotingClientRuntime(
+ return base::WrapUnique(new ChromotingClientRuntime(
ui_task_runner, display_task_runner, network_task_runner,
file_task_runner, url_requester));
}
« no previous file with comments | « remoting/client/chromoting_client_runtime.h ('k') | remoting/client/chromoting_client_runtime_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698