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

Unified Diff: remoting/host/client_session.cc

Issue 524843002: Don't print out extension message data if unrecognized. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo Created 6 years, 3 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
« no previous file with comments | « no previous file | remoting/webapp/client_plugin.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/client_session.cc
diff --git a/remoting/host/client_session.cc b/remoting/host/client_session.cc
index 2af7f68053e1b2a5ce3f83eafeb53c0afc370ad7..e594b104cf63674e83ca7179ae35c5859ce751cd 100644
--- a/remoting/host/client_session.cc
+++ b/remoting/host/client_session.cc
@@ -235,12 +235,13 @@ void ClientSession::DeliverClientMessage(
}
return;
} else {
- extension_manager_->OnExtensionMessage(message);
- return;
+ if (!extension_manager_->OnExtensionMessage(message))
+ return;
+
+ DLOG(INFO) << "Unexpected message received: "
+ << message.type() << ": " << message.data();
}
}
- HOST_LOG << "Unexpected message received: "
- << message.type() << ": " << message.data();
}
void ClientSession::OnConnectionAuthenticating(
« no previous file with comments | « no previous file | remoting/webapp/client_plugin.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698