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

Unified Diff: remoting/host/it2me/it2me_native_messaging_host_main.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
Index: remoting/host/it2me/it2me_native_messaging_host_main.cc
diff --git a/remoting/host/it2me/it2me_native_messaging_host_main.cc b/remoting/host/it2me/it2me_native_messaging_host_main.cc
index b853ce9a5c1cf28e93717e9c513e2bb19bc724ec..2165e60afd3808ca62e6394a0768e8d02c3b053b 100644
--- a/remoting/host/it2me/it2me_native_messaging_host_main.cc
+++ b/remoting/host/it2me/it2me_native_messaging_host_main.cc
@@ -117,19 +117,19 @@ int StartIt2MeNativeMessagingHost() {
base::MessageLoopForUI message_loop;
base::RunLoop run_loop;
- scoped_ptr<It2MeHostFactory> factory(new It2MeHostFactory());
+ std::unique_ptr<It2MeHostFactory> factory(new It2MeHostFactory());
- scoped_ptr<NativeMessagingPipe> native_messaging_pipe(
+ std::unique_ptr<NativeMessagingPipe> native_messaging_pipe(
new NativeMessagingPipe());
// Set up the native messaging channel.
- scoped_ptr<extensions::NativeMessagingChannel> channel(
+ std::unique_ptr<extensions::NativeMessagingChannel> channel(
new PipeMessagingChannel(std::move(read_file), std::move(write_file)));
- scoped_ptr<ChromotingHostContext> context =
+ std::unique_ptr<ChromotingHostContext> context =
ChromotingHostContext::Create(new remoting::AutoThreadTaskRunner(
message_loop.task_runner(), run_loop.QuitClosure()));
- scoped_ptr<extensions::NativeMessageHost> host(
+ std::unique_ptr<extensions::NativeMessageHost> host(
new It2MeNativeMessagingHost(std::move(context), std::move(factory)));
host->Start(native_messaging_pipe.get());
« no previous file with comments | « remoting/host/it2me/it2me_native_messaging_host.cc ('k') | remoting/host/it2me/it2me_native_messaging_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698