| 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 a8d7b0c84f02c877f7faf95b5edab72ada79cce2..4e07da6371092d2607fd3a73ed99e3e7eb7a482a 100644
|
| --- a/remoting/host/plugin/host_script_object.cc
|
| +++ b/remoting/host/plugin/host_script_object.cc
|
| @@ -19,6 +19,7 @@
|
| #include "remoting/host/chromoting_host_context.h"
|
| #include "remoting/host/desktop_environment.h"
|
| #include "remoting/host/host_config.h"
|
| +#include "remoting/host/host_event_logger.h"
|
| #include "remoting/host/host_key_pair.h"
|
| #include "remoting/host/host_secret.h"
|
| #include "remoting/host/it2me_host_user_interface.h"
|
| @@ -36,6 +37,9 @@ namespace remoting {
|
|
|
| namespace {
|
|
|
| +// This is used for tagging system event logs.
|
| +const char kApplicationName[] = "chromoting";
|
| +
|
| const char* kAttrNameAccessCode = "accessCode";
|
| const char* kAttrNameAccessCodeLifetime = "accessCodeLifetime";
|
| const char* kAttrNameClient = "client";
|
| @@ -424,6 +428,7 @@ void HostNPScriptObject::OnShutdown() {
|
| register_request_.reset();
|
| log_to_server_.reset();
|
| signal_strategy_.reset();
|
| + host_event_logger_.reset();
|
| host_->RemoveStatusObserver(this);
|
| host_ = NULL;
|
|
|
| @@ -579,6 +584,7 @@ void HostNPScriptObject::FinishConnectNetworkThread(
|
| &ChromotingHost::Shutdown, base::Unretained(host_.get()),
|
| base::Closure());
|
| it2me_host_user_interface_->Start(host_.get(), disconnect_callback);
|
| + host_event_logger_ = HostEventLogger::Create(host_, kApplicationName);
|
|
|
| {
|
| base::AutoLock auto_lock(ui_strings_lock_);
|
|
|