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

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

Issue 10827054: 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 cf926dc3c3051806787d4d70c504932efd077094..147bff456faddd57bd123d4058c8f8d8ac7a796e 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";
Sergey Ulanov 2012/07/27 21:59:53 I don't think this is the name we want to use here
alexeypa (please no reviews) 2012/07/27 22:10:44 This name has been used in a released version of m
+
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_);

Powered by Google App Engine
This is Rietveld 408576698