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

Unified Diff: remoting/host/gcd_state_updater.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/client/plugin/chromoting_instance.cc ('k') | remoting/host/gcd_state_updater_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/gcd_state_updater.cc
diff --git a/remoting/host/gcd_state_updater.cc b/remoting/host/gcd_state_updater.cc
index d7d57c9005ff073b3d4e5a76b697b09654c0257e..a49f7e2987c682b4683a22b4a4e3c9b774e19914 100644
--- a/remoting/host/gcd_state_updater.cc
+++ b/remoting/host/gcd_state_updater.cc
@@ -14,6 +14,7 @@
#include "base/values.h"
#include "remoting/base/constants.h"
#include "remoting/base/logging.h"
+#include "remoting/signaling/signaling_address.h"
namespace remoting {
@@ -79,7 +80,7 @@ void GcdStateUpdater::OnPatchStateResult(GcdRestClient::Result result) {
}
if (result == GcdRestClient::NETWORK_ERROR ||
- pending_request_jid_ != signal_strategy_->GetLocalJid()) {
+ pending_request_jid_ != signal_strategy_->GetLocalAddress().jid()) {
// Continue exponential backoff.
return;
}
@@ -115,7 +116,7 @@ void GcdStateUpdater::MaybeSendStateUpdate() {
// Construct an update to the remote state.
std::unique_ptr<base::DictionaryValue> patch(new base::DictionaryValue);
std::unique_ptr<base::DictionaryValue> base_state(new base::DictionaryValue);
- pending_request_jid_ = signal_strategy_->GetLocalJid();
+ pending_request_jid_ = signal_strategy_->GetLocalAddress().jid();
base_state->SetString("_jabberId", pending_request_jid_);
base_state->SetString("_hostVersion", STRINGIZE(VERSION));
patch->Set("base", std::move(base_state));
« no previous file with comments | « remoting/client/plugin/chromoting_instance.cc ('k') | remoting/host/gcd_state_updater_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698