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

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

Issue 1272833002: Pass error messages from native messaging to web-app. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix unit tests. Created 5 years, 4 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/setup/me2me_native_messaging_host.cc
diff --git a/remoting/host/setup/me2me_native_messaging_host.cc b/remoting/host/setup/me2me_native_messaging_host.cc
index d2957fdf8c5a0c276be641e503aec965714f72f1..49d2b74588ed3d590647d5430a8d1d80c3cfb025 100644
--- a/remoting/host/setup/me2me_native_messaging_host.cc
+++ b/remoting/host/setup/me2me_native_messaging_host.cc
@@ -83,6 +83,9 @@ Me2MeNativeMessagingHost::Me2MeNativeMessagingHost(
parent_window_handle_(parent_window_handle),
#endif
channel_(channel.Pass()),
+ log_message_handler_(
+ base::Bind(&extensions::NativeMessagingChannel::SendMessage,
+ base::Unretained(channel_.get()))),
daemon_controller_(daemon_controller),
pairing_registry_(pairing_registry),
oauth_client_(oauth_client.Pass()),

Powered by Google App Engine
This is Rietveld 408576698