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

Unified Diff: remoting/host/plugin/host_script_object.cc

Issue 10673018: Add HostEventLogger to It2Me host plugin (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 months 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 ac8f9af8ae1cbd658f96649972e78224e23d0bc7..6e8d067227561a6f1e0a7702c4cea44c3687ce0b 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);
alexeypa (please no reviews) 2012/07/19 17:05:00 This is not going to work on Windows. Logging to t
{
base::AutoLock auto_lock(ui_strings_lock_);

Powered by Google App Engine
This is Rietveld 408576698