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

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: 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/plugin/host_script_object.h ('k') | remoting/host/server_log_entry.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..779aae348144f4e786505bdf83b71675bfac93f8 100644
--- a/remoting/host/plugin/host_script_object.cc
+++ b/remoting/host/plugin/host_script_object.cc
@@ -92,7 +92,8 @@ HostNPScriptObject::HostNPScriptObject(
disconnected_event_(true, false),
am_currently_logging_(false),
nat_traversal_enabled_(false),
- policy_received_(false) {
+ policy_received_(false),
+ enable_log_to_server_(false) {
}
HostNPScriptObject::~HostNPScriptObject() {
@@ -519,6 +520,10 @@ void HostNPScriptObject::FinishConnect(
access_verifier.release(), nat_traversal_enabled_);
host_->AddStatusObserver(this);
host_->AddStatusObserver(register_request_.get());
+ if (enable_log_to_server_) {
+ log_to_server_.reset(new LogToServer(host_context_.network_message_loop()));
+ host_->AddStatusObserver(log_to_server_.get());
+ }
host_->set_it2me(true);
{
« no previous file with comments | « remoting/host/plugin/host_script_object.h ('k') | remoting/host/server_log_entry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698