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

Unified Diff: remoting/host/heartbeat_sender.cc

Issue 10409017: [Chromoting] Add platform data to heartbeats. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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 | « no previous file | remoting/host/log_to_server.cc » ('j') | remoting/host/server_log_entry.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/heartbeat_sender.cc
diff --git a/remoting/host/heartbeat_sender.cc b/remoting/host/heartbeat_sender.cc
index 8420acf12c9f486a9ece4c30373fe1c582d5e74e..a220e0c66d408cf9e4ab8da65132b3f3a2853f8b 100644
--- a/remoting/host/heartbeat_sender.cc
+++ b/remoting/host/heartbeat_sender.cc
@@ -14,6 +14,7 @@
#include "base/time.h"
#include "remoting/base/constants.h"
#include "remoting/host/constants.h"
+#include "remoting/host/server_log_entry.h"
#include "remoting/jingle_glue/iq_sender.h"
#include "remoting/jingle_glue/jingle_thread.h"
#include "remoting/jingle_glue/signal_strategy.h"
@@ -235,6 +236,11 @@ scoped_ptr<XmlElement> HeartbeatSender::CreateHeartbeatMessage() {
query->AddAttr(QName(kChromotingXmlNamespace, kSequenceIdAttr),
base::IntToString(sequence_id_));
query->AddElement(CreateSignature().release());
+ scoped_ptr<XmlElement> log(ServerLogEntry::MakeLogStanza());
Wez 2012/05/18 01:27:14 And one here to the effect of "Create heartbeat lo
simonmorris 2012/05/18 17:06:57 Done.
+ scoped_ptr<ServerLogEntry> log_entry(ServerLogEntry::MakeHeartbeat());
Wez 2012/05/18 01:27:14 ServerLogEntry::MakeHeartbeat() looks strange here
simonmorris 2012/05/18 17:06:57 Done.
+ log_entry->AddHostFields();
+ log->AddElement(log_entry->ToStanza().release());
+ query->AddElement(log.release());
return query.Pass();
}
« no previous file with comments | « no previous file | remoting/host/log_to_server.cc » ('j') | remoting/host/server_log_entry.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698