Index: cc/test/remote_proto_channel_bridge.cc |
diff --git a/cc/test/remote_proto_channel_bridge.cc b/cc/test/remote_proto_channel_bridge.cc |
index 6d9002c9a91c38dc046a51e07d8d53f1a9d62f0c..60011e8ebc9141c08ebb7c2045e172a7515db1ef 100644 |
--- a/cc/test/remote_proto_channel_bridge.cc |
+++ b/cc/test/remote_proto_channel_bridge.cc |
@@ -35,9 +35,8 @@ bool FakeRemoteProtoChannel::HasReceiver() const { |
} |
FakeRemoteProtoChannelMain::FakeRemoteProtoChannelMain( |
- RemoteProtoChannelBridge* bridge, |
- TestHooks* test_hooks) |
- : FakeRemoteProtoChannel(bridge), test_hooks_(test_hooks) {} |
+ RemoteProtoChannelBridge* bridge) |
+ : FakeRemoteProtoChannel(bridge) {} |
void FakeRemoteProtoChannelMain::SendCompositorProto( |
const proto::CompositorMessage& proto) { |
@@ -49,12 +48,6 @@ void FakeRemoteProtoChannelMain::SendCompositorProto( |
switch (to_impl_proto.message_type()) { |
case proto::CompositorMessageToImpl::UNKNOWN: |
return; |
- case proto::CompositorMessageToImpl::INITIALIZE_IMPL: |
- test_hooks_->CreateRemoteClientHost(to_impl_proto); |
- return; |
- case proto::CompositorMessageToImpl::CLOSE_IMPL: |
- test_hooks_->DestroyRemoteClientHost(); |
- return; |
default: |
bridge_->channel_impl.OnProtoReceived( |
base::MakeUnique<proto::CompositorMessage>(proto)); |
@@ -71,8 +64,8 @@ void FakeRemoteProtoChannelImpl::SendCompositorProto( |
base::MakeUnique<proto::CompositorMessage>(proto)); |
} |
-RemoteProtoChannelBridge::RemoteProtoChannelBridge(TestHooks* test_hooks) |
- : channel_main(this, test_hooks), channel_impl(this) {} |
+RemoteProtoChannelBridge::RemoteProtoChannelBridge() |
+ : channel_main(this), channel_impl(this) {} |
RemoteProtoChannelBridge::~RemoteProtoChannelBridge() {} |