Index: remoting/host/simple_host_process.cc |
diff --git a/remoting/host/simple_host_process.cc b/remoting/host/simple_host_process.cc |
index 56ad378b0531c88de4d058c82dbb2d7f56024d10..289da0f7a4f68f9e6225fd0e28fa84fef21990db 100644 |
--- a/remoting/host/simple_host_process.cc |
+++ b/remoting/host/simple_host_process.cc |
@@ -32,6 +32,7 @@ |
#include "remoting/host/capturer_fake.h" |
#include "remoting/host/chromoting_host.h" |
#include "remoting/host/chromoting_host_context.h" |
+#include "remoting/host/event_executor.h" |
#include "remoting/host/json_host_config.h" |
#include "remoting/proto/video.pb.h" |
@@ -116,9 +117,12 @@ int main(int argc, char** argv) { |
bool fake = cmd_line->HasSwitch(kFakeSwitchName); |
if (fake) { |
+ remoting::Capturer* capturer = |
+ new remoting::CapturerFake(context.main_message_loop()); |
+ remoting::protocol::InputStub* input_stub = |
+ CreateEventExecutor(context.main_message_loop(), capturer); |
host = ChromotingHost::Create( |
- &context, config, |
- new remoting::CapturerFake(context.main_message_loop())); |
+ &context, config, capturer, input_stub); |
} else { |
host = ChromotingHost::Create(&context, config); |
} |