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

Unified Diff: remoting/host/heartbeat_sender.cc

Issue 2798393007: Use SignalingAddress in SignalStrategy insterface. (Closed)
Patch Set: header Created 3 years, 8 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/gcd_state_updater_unittest.cc ('k') | remoting/host/heartbeat_sender_unittest.cc » ('j') | no next file with comments »
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 e452b5e45f64d2d9d918359ec78f808c854e1282..8df8890f588c1f3cc06b9dcc40c64ffd900c6bbc 100644
--- a/remoting/host/heartbeat_sender.cc
+++ b/remoting/host/heartbeat_sender.cc
@@ -19,9 +19,9 @@
#include "remoting/host/host_details.h"
#include "remoting/host/server_log_entry_host.h"
#include "remoting/signaling/iq_sender.h"
-#include "remoting/signaling/jid_util.h"
#include "remoting/signaling/server_log_entry.h"
#include "remoting/signaling/signal_strategy.h"
+#include "remoting/signaling/signaling_address.h"
#include "third_party/libjingle_xmpp/xmllite/xmlelement.h"
#include "third_party/libjingle_xmpp/xmpp/constants.h"
@@ -349,7 +349,7 @@ std::unique_ptr<XmlElement> HeartbeatSender::CreateSignature() {
std::unique_ptr<XmlElement> signature_tag(
new XmlElement(QName(kChromotingXmlNamespace, kHeartbeatSignatureTag)));
- std::string message = NormalizeJid(signal_strategy_->GetLocalJid()) + ' ' +
+ std::string message = signal_strategy_->GetLocalAddress().jid() + ' ' +
base::IntToString(sequence_id_);
std::string signature(host_key_pair_->SignMessage(message));
signature_tag->AddText(signature);
« no previous file with comments | « remoting/host/gcd_state_updater_unittest.cc ('k') | remoting/host/heartbeat_sender_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698