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

Unified Diff: remoting/jingle_glue/jingle_test_client.cc

Issue 2730009: Fix build break in remoting (Closed)
Patch Set: Created 10 years, 6 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/jingle_glue/jingle_test_client.cc
diff --git a/remoting/jingle_glue/jingle_test_client.cc b/remoting/jingle_glue/jingle_test_client.cc
index 7bf33c03f92f606a09c046d0abff4e0757ea1542..e8c1699e73037bd6a5218348b7a660f0d589d54a 100644
--- a/remoting/jingle_glue/jingle_test_client.cc
+++ b/remoting/jingle_glue/jingle_test_client.cc
@@ -18,6 +18,7 @@ extern "C" {
#include "remoting/base/constants.h"
#include "remoting/jingle_glue/jingle_channel.h"
#include "remoting/jingle_glue/jingle_client.h"
+#include "remoting/jingle_glue/jingle_thread.h"
using remoting::JingleClient;
using remoting::JingleChannel;
@@ -55,7 +56,10 @@ class JingleTestClient : public JingleChannel::Callback,
void Run(const std::string& username, const std::string& auth_token,
const std::string& host_jid) {
- client_ = new JingleClient();
+ // TODO(hclam): Fix the threading problem.
+ remoting::JingleThread jingle_thread;
+ jingle_thread.Start();
+ client_ = new JingleClient(&jingle_thread);
client_->Init(username, auth_token, kChromotingTokenServiceName, this);
if (host_jid != "") {
@@ -89,6 +93,7 @@ class JingleTestClient : public JingleChannel::Callback,
}
client_->Close();
+ jingle_thread.Stop();
}
// JingleChannel::Callback interface.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698