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

Unified Diff: remoting/signaling/fake_signal_strategy.cc

Issue 2577333003: Update SignalingAddress to normalize all JIDs. (Closed)
Patch Set: . Created 4 years 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/protocol/jingle_session_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/signaling/fake_signal_strategy.cc
diff --git a/remoting/signaling/fake_signal_strategy.cc b/remoting/signaling/fake_signal_strategy.cc
index dfa8b7aa3d39ace87745b67f7a3af52ebfd8c675..b0ecd38bd92a3291007a5a409327c932c81269ca 100644
--- a/remoting/signaling/fake_signal_strategy.cc
+++ b/remoting/signaling/fake_signal_strategy.cc
@@ -13,6 +13,7 @@
#include "base/stl_util.h"
#include "base/strings/string_number_conversions.h"
#include "base/threading/thread_task_runner_handle.h"
+#include "remoting/signaling/jid_util.h"
#include "third_party/webrtc/libjingle/xmllite/xmlelement.h"
#include "third_party/webrtc/libjingle/xmpp/constants.h"
@@ -164,7 +165,7 @@ void FakeSignalStrategy::NotifyListeners(
received_messages_.push_back(stanza.release());
const std::string& to_field = stanza_ptr->Attr(buzz::QN_TO);
- if (to_field != jid_) {
+ if (NormalizeJid(to_field) != NormalizeJid(jid_)) {
LOG(WARNING) << "Dropping stanza that is addressed to " << to_field
<< ". Local jid: " << jid_
<< ". Message content: " << stanza_ptr->Str();
« no previous file with comments | « remoting/protocol/jingle_session_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698