Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(541)

Unified Diff: remoting/host/simple_host_process.cc

Issue 8468015: The host sends simple log entries to the server. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Mac trybot. Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: remoting/host/simple_host_process.cc
diff --git a/remoting/host/simple_host_process.cc b/remoting/host/simple_host_process.cc
index 533a94c2d218b750b2d50d5c69d6f5d09fce7d89..64a945009409be1ab0d68bdb219f2d77afc39b49 100644
--- a/remoting/host/simple_host_process.cc
+++ b/remoting/host/simple_host_process.cc
@@ -42,6 +42,7 @@
#include "remoting/host/event_executor.h"
#include "remoting/host/heartbeat_sender.h"
#include "remoting/host/local_input_monitor.h"
+#include "remoting/host/log_to_server.h"
#include "remoting/host/json_host_config.h"
#include "remoting/host/register_support_host_request.h"
#include "remoting/host/self_access_verifier.h"
@@ -135,6 +136,7 @@ class SimpleHost {
scoped_ptr<remoting::AccessVerifier> access_verifier;
scoped_ptr<remoting::RegisterSupportHostRequest> register_request;
scoped_ptr<remoting::HeartbeatSender> heartbeat_sender;
+ scoped_refptr<remoting::LogToServer> log_to_server;
if (is_it2me_) {
scoped_ptr<remoting::SupportAccessVerifier> support_access_verifier(
new remoting::SupportAccessVerifier());
@@ -153,6 +155,7 @@ class SimpleHost {
return 1;
access_verifier.reset(self_access_verifier.release());
}
+ log_to_server = new remoting::LogToServer(context.network_message_loop());
// Construct a chromoting host.
scoped_ptr<DesktopEnvironment> desktop_environment;
@@ -196,6 +199,7 @@ class SimpleHost {
return 1;
host_->AddStatusObserver(heartbeat_sender.get());
}
+ host_->AddStatusObserver(log_to_server.get());
// Let the chromoting host run until the shutdown task is executed.
host_->Start();

Powered by Google App Engine
This is Rietveld 408576698