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

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: Review. 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
« no previous file with comments | « remoting/host/server_log_entry_unittest.cc ('k') | remoting/remoting.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..99af0712cf96d60d4fa5de56a2390a1722bfe01a 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_ptr<remoting::LogToServer> log_to_server;
if (is_it2me_) {
scoped_ptr<remoting::SupportAccessVerifier> support_access_verifier(
new remoting::SupportAccessVerifier());
@@ -153,6 +155,8 @@ class SimpleHost {
return 1;
access_verifier.reset(self_access_verifier.release());
}
+ log_to_server.reset(new remoting::LogToServer(
+ context.network_message_loop()));
// Construct a chromoting host.
scoped_ptr<DesktopEnvironment> desktop_environment;
@@ -196,6 +200,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();
« no previous file with comments | « remoting/host/server_log_entry_unittest.cc ('k') | remoting/remoting.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698