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

Unified Diff: remoting/host/it2me/it2me_native_messaging_host_unittest.cc

Issue 639233002: Remote assistance on Chrome OS Part IV - It2MeHost (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address feedbacks Created 6 years, 2 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_unittest.cc
diff --git a/remoting/host/it2me/it2me_native_messaging_host_unittest.cc b/remoting/host/it2me/it2me_native_messaging_host_unittest.cc
index 61334cfc45fb3b41172a0dffdc513e07205532bb..dfb234bb8c896d38e7cd10179a21f5dcd120deea 100644
--- a/remoting/host/it2me/it2me_native_messaging_host_unittest.cc
+++ b/remoting/host/it2me/it2me_native_messaging_host_unittest.cc
@@ -438,10 +438,10 @@ void It2MeNativeMessagingHostTest::StartHost() {
new PipeMessagingChannel(input_read_file.Pass(),
output_write_file.Pass()));
- scoped_ptr<extensions::NativeMessageHost> it2me_host(
- new It2MeNativeMessagingHost(
- host_task_runner_,
- factory.Pass()));
+ scoped_ptr<extensions::NativeMessageHost> it2me_host =
+ It2MeNativeMessagingHost::Create(
+ ChromotingHostContext::Create(host_task_runner_.get()),
Wez 2014/10/17 17:58:01 Don't use get() here.
kelvinp 2014/10/20 00:21:18 Done.
+ factory.Pass());
it2me_host->Start(pipe_.get());
pipe_->Start(it2me_host.Pass(),

Powered by Google App Engine
This is Rietveld 408576698