| Index: remoting/host/simple_host_process.cc
|
| diff --git a/remoting/host/simple_host_process.cc b/remoting/host/simple_host_process.cc
|
| index c10c2c576529518c37e377b548dc5aa402233422..1e188d5d1bc83443d350103cc0dc774e1170908d 100644
|
| --- a/remoting/host/simple_host_process.cc
|
| +++ b/remoting/host/simple_host_process.cc
|
| @@ -36,6 +36,7 @@
|
| #include "remoting/host/curtain.h"
|
| #include "remoting/host/desktop_environment.h"
|
| #include "remoting/host/event_executor.h"
|
| +#include "remoting/host/heartbeat_sender.h"
|
| #include "remoting/host/json_host_config.h"
|
| #include "remoting/proto/video.pb.h"
|
|
|
| @@ -172,6 +173,13 @@ int main(int argc, char** argv) {
|
| mock_cr_app::RegisterMockCrApp();
|
| #endif // OS_MACOSX
|
|
|
| + // Initialize HeartbeatSender.
|
| + scoped_refptr<remoting::HeartbeatSender> heartbeat_sender =
|
| + new remoting::HeartbeatSender(context.network_message_loop(), config);
|
| + if (!heartbeat_sender->Init())
|
| + return 1;
|
| + host->AddStatusObserver(heartbeat_sender);
|
| +
|
| // Let the chromoting host run until the shutdown task is executed.
|
| host->Start(NewRunnableFunction(&ShutdownTask, &message_loop));
|
| message_loop.MessageLoop::Run();
|
|
|