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

Unified Diff: remoting/host/it2me/it2me_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: Added IT2Me support. 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/it2me/it2me_native_messaging_host.cc
diff --git a/remoting/host/it2me/it2me_native_messaging_host.cc b/remoting/host/it2me/it2me_native_messaging_host.cc
index 1bf175ecda500dbf33a96b693631d76230e145dd..b5c007c962d980fe0ee697ab44f008b379163409 100644
--- a/remoting/host/it2me/it2me_native_messaging_host.cc
+++ b/remoting/host/it2me/it2me_native_messaging_host.cc
@@ -115,10 +115,14 @@ void It2MeNativeMessagingHost::OnMessage(const std::string& message) {
void It2MeNativeMessagingHost::Start(Client* client) {
DCHECK(task_runner()->BelongsToCurrentThread());
client_ = client;
+ log_message_handler_.reset(
Sergey Ulanov 2015/08/16 23:22:02 This should be disabled on ChromeOS. We don't want
Jamie 2015/08/17 17:32:23 Done.
+ new LogMessageHandler(
+ base::Bind(&It2MeNativeMessagingHost::SendMessageToClient,
+ base::Unretained(this))));
}
void It2MeNativeMessagingHost::SendMessageToClient(
- scoped_ptr<base::DictionaryValue> message) const {
+ scoped_ptr<base::Value> message) const {
DCHECK(task_runner()->BelongsToCurrentThread());
std::string message_json;
base::JSONWriter::Write(*message, &message_json);

Powered by Google App Engine
This is Rietveld 408576698