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

Unified Diff: remoting/host/register_support_host_request.cc

Issue 9005034: Refactor SignalStrategy so that it can be reused for multiple connections. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 8 years, 12 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
Index: remoting/host/register_support_host_request.cc
diff --git a/remoting/host/register_support_host_request.cc b/remoting/host/register_support_host_request.cc
index 5974675de7c512ad40d6797386a80c1a04f7cd54..5668f278d793c88711a7b6107aa3e736be191cd0 100644
--- a/remoting/host/register_support_host_request.cc
+++ b/remoting/host/register_support_host_request.cc
@@ -53,15 +53,15 @@ bool RegisterSupportHostRequest::Init(HostConfig* config,
}
void RegisterSupportHostRequest::OnSignallingConnected(
- SignalStrategy* signal_strategy,
- const std::string& jid) {
+ SignalStrategy* signal_strategy) {
DCHECK(!callback_.is_null());
message_loop_ = MessageLoop::current();
iq_sender_.reset(new IqSender(signal_strategy));
request_.reset(iq_sender_->SendIq(
- buzz::STR_SET, kChromotingBotJid, CreateRegistrationRequest(jid),
+ buzz::STR_SET, kChromotingBotJid,
+ CreateRegistrationRequest(signal_strategy->GetLocalJid()),
base::Bind(&RegisterSupportHostRequest::ProcessResponse,
base::Unretained(this))));
}
« no previous file with comments | « remoting/host/register_support_host_request.h ('k') | remoting/host/register_support_host_request_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698