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

Unified Diff: remoting/host/plugin/host_script_object.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/plugin/host_script_object.cc
diff --git a/remoting/host/plugin/host_script_object.cc b/remoting/host/plugin/host_script_object.cc
index 7a23eccc47b6948d8e2d41daaa21219d992843b9..316a96788999fc02feed61387c3e0843ecf45105 100644
--- a/remoting/host/plugin/host_script_object.cc
+++ b/remoting/host/plugin/host_script_object.cc
@@ -512,6 +512,8 @@ void HostNPScriptObject::FinishConnect(
host_config_ = host_config;
register_request_.reset(register_request.release());
+ log_to_server_ = new LogToServer(host_context_.network_message_loop());
Sergey Ulanov 2011/11/17 01:16:33 Can you please add flag to disable/enable logging?
simonmorris 2011/11/18 19:23:04 Done. It's just disabled for now - enabling it ca
+
// Create the Host.
LOG(INFO) << "NAT state: " << nat_traversal_enabled_;
host_ = ChromotingHost::Create(
@@ -519,6 +521,7 @@ void HostNPScriptObject::FinishConnect(
access_verifier.release(), nat_traversal_enabled_);
host_->AddStatusObserver(this);
host_->AddStatusObserver(register_request_.get());
+ host_->AddStatusObserver(log_to_server_.get());
host_->set_it2me(true);
{

Powered by Google App Engine
This is Rietveld 408576698