Index: remoting/test/test_chromoting_client.cc |
diff --git a/remoting/test/test_chromoting_client.cc b/remoting/test/test_chromoting_client.cc |
index d838ba3a7986d363609e23777dedede28d182e5f..eef9bb355e439e61015a1d3b50a2a3335f46228d 100644 |
--- a/remoting/test/test_chromoting_client.cc |
+++ b/remoting/test/test_chromoting_client.cc |
@@ -133,12 +133,12 @@ namespace test { |
TestChromotingClient::TestChromotingClient() |
: connection_to_host_state_(protocol::ConnectionToHost::INITIALIZING), |
- connection_error_code_(protocol::OK) { |
-} |
+ connection_error_code_(protocol::OK), |
+ weak_factory_(this) {} |
TestChromotingClient::TestChromotingClient( |
scoped_ptr<VideoRenderer> video_renderer) |
- : video_renderer_(video_renderer.Pass()) { |
+ : video_renderer_(video_renderer.Pass()), weak_factory_(this) { |
TestChromotingClient(); |
} |