Index: remoting/test/app_remoting_connection_helper.cc |
diff --git a/remoting/test/app_remoting_connection_helper.cc b/remoting/test/app_remoting_connection_helper.cc |
index 38b86f72271621b3b6a0169f14bb69a40927cdf2..2dd2f8793cdf59d9a0bc471ef809f380f1e2a7e8 100644 |
--- a/remoting/test/app_remoting_connection_helper.cc |
+++ b/remoting/test/app_remoting_connection_helper.cc |
@@ -4,7 +4,6 @@ |
#include "remoting/test/app_remoting_connection_helper.h" |
-#include "base/callback_helpers.h" |
#include "base/json/json_reader.h" |
#include "base/logging.h" |
#include "base/run_loop.h" |
@@ -49,11 +48,6 @@ void AppRemotingConnectionHelper::Initialize( |
client_->AddRemoteConnectionObserver(this); |
} |
-void AppRemotingConnectionHelper::SetHostMessageReceivedCallback( |
- HostMessageReceivedCallback host_message_received_callback) { |
- host_message_received_callback_ = host_message_received_callback; |
-} |
- |
bool AppRemotingConnectionHelper::StartConnection() { |
DCHECK(thread_checker_.CalledOnValidThread()); |
DCHECK(client_); |
@@ -145,11 +139,7 @@ void AppRemotingConnectionHelper::HostMessageReceived( |
VLOG(2) << "HostMessage received by HostMessageReceived()." |
<< " type: " << message.type() << " data: " << message.data(); |
- // If a callback is not registered, then the message is passed to a default |
- // handler for the class based on the message type. |
- if (!host_message_received_callback_.is_null()) { |
- base::ResetAndReturn(&host_message_received_callback_).Run(message); |
- } else if (message.type() == "onWindowAdded") { |
+ if (message.type() == "onWindowAdded") { |
HandleOnWindowAddedMessage(message); |
} else { |
VLOG(2) << "HostMessage not handled by HostMessageReceived()."; |