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

Unified Diff: remoting/host/setup/me2me_native_messaging_host_main.cc

Issue 103693006: Me2me Native Messaging host on Windows: restructure NativeMessagingHost and NativeMessagingChannel.… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years 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/setup/me2me_native_messaging_host_main.cc
diff --git a/remoting/host/setup/me2me_native_messaging_host_main.cc b/remoting/host/setup/me2me_native_messaging_host_main.cc
index 91d8d9d8f631ea50d24b62a50993cb53844602d5..fbba4d3a8ccb2dec928e4ccf43942358e01add30 100644
--- a/remoting/host/setup/me2me_native_messaging_host_main.cc
+++ b/remoting/host/setup/me2me_native_messaging_host_main.cc
@@ -75,15 +75,12 @@ int NativeMessagingHostMain() {
// Create the pairing registry and native messaging host.
scoped_refptr<protocol::PairingRegistry> pairing_registry =
CreatePairingRegistry(io_thread.message_loop_proxy());
- scoped_ptr<NativeMessagingChannel::Delegate> host(
+
+ scoped_ptr<NativeMessagingHost> host(
new NativeMessagingHost(daemon_controller,
pairing_registry,
oauth_client.Pass()));
-
- // Set up the native messaging channel.
- scoped_ptr<NativeMessagingChannel> channel(
- new NativeMessagingChannel(host.Pass(), read_file, write_file));
- channel->Start(run_loop.QuitClosure());
+ host->Start(read_file, write_file, run_loop.QuitClosure());
// Run the loop until channel is alive.
run_loop.Run();

Powered by Google App Engine
This is Rietveld 408576698