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

Unified Diff: remoting/host/host_event_logger_posix.cc

Issue 10893009: Log when the host is started for an account. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Change shutdown log to a TODO, update unit test expectations. Created 8 years, 4 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
« no previous file with comments | « remoting/host/chromoting_host_unittest.cc ('k') | remoting/host/host_event_logger_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/host_event_logger_posix.cc
diff --git a/remoting/host/host_event_logger_posix.cc b/remoting/host/host_event_logger_posix.cc
index b29f9d26283fe2643eba2337028bf6b04a7ea37b..fed6203b8500888fc0f476d40379fc41d248e87d 100644
--- a/remoting/host/host_event_logger_posix.cc
+++ b/remoting/host/host_event_logger_posix.cc
@@ -37,6 +37,7 @@ class HostEventLoggerPosix : public HostEventLogger, public HostStatusObserver {
const std::string& jid,
const std::string& channel_name,
const protocol::TransportRoute& route) OVERRIDE;
+ virtual void OnStart(const std::string& xmpp_login) OVERRIDE;
virtual void OnShutdown() OVERRIDE;
private:
@@ -56,7 +57,6 @@ HostEventLoggerPosix::HostEventLoggerPosix(ChromotingHost* host,
application_name_(application_name) {
openlog(application_name_.c_str(), 0, LOG_USER);
host_->AddStatusObserver(this);
- Log("Started");
}
HostEventLoggerPosix::~HostEventLoggerPosix() {
@@ -89,6 +89,11 @@ void HostEventLoggerPosix::OnClientRouteChange(
}
void HostEventLoggerPosix::OnShutdown() {
+ // TODO(rmsousa): Fix host shutdown to actually call this, and add a log line.
+}
+
+void HostEventLoggerPosix::OnStart(const std::string& xmpp_login) {
+ Log("Host started for user: " + xmpp_login);
}
void HostEventLoggerPosix::Log(const std::string& message) {
« no previous file with comments | « remoting/host/chromoting_host_unittest.cc ('k') | remoting/host/host_event_logger_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698