summaryrefslogtreecommitdiffstats
path: root/remoting/jingle_glue/jingle_info_request.cc
diff options
context:
space:
mode:
authorsergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-06 20:28:49 +0000
committersergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-06 20:28:49 +0000
commitd7aef012f4b37a236999525d89fa6c74868c345e (patch)
treed9b6c554708694fda21d78b2ebe9d23b96c65be4 /remoting/jingle_glue/jingle_info_request.cc
parentf0367ca630712404e2332b3bf92cf4337d6c96ad (diff)
downloadchromium_src-d7aef012f4b37a236999525d89fa6c74868c345e.zip
chromium_src-d7aef012f4b37a236999525d89fa6c74868c345e.tar.gz
chromium_src-d7aef012f4b37a236999525d89fa6c74868c345e.tar.bz2
Simplify IqRequest interface.
This is neccessary to make the interface usable with stanzas generated by JingleMessage::ToXml(). BUG=None TEST=Unittests Review URL: http://codereview.chromium.org/7809003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99801 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/jingle_glue/jingle_info_request.cc')
-rw-r--r--remoting/jingle_glue/jingle_info_request.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/remoting/jingle_glue/jingle_info_request.cc b/remoting/jingle_glue/jingle_info_request.cc
index 888c768..9a5d16d 100644
--- a/remoting/jingle_glue/jingle_info_request.cc
+++ b/remoting/jingle_glue/jingle_info_request.cc
@@ -34,8 +34,9 @@ JingleInfoRequest::~JingleInfoRequest() {
void JingleInfoRequest::Send(const OnJingleInfoCallback& callback) {
on_jingle_info_cb_ = callback;
- request_->SendIq(buzz::STR_GET, buzz::STR_EMPTY,
- new buzz::XmlElement(buzz::QN_JINGLE_INFO_QUERY, true));
+ request_->SendIq(IqRequest::MakeIqStanza(
+ buzz::STR_GET, buzz::STR_EMPTY,
+ new buzz::XmlElement(buzz::QN_JINGLE_INFO_QUERY, true)));
}
void JingleInfoRequest::OnResponse(const buzz::XmlElement* stanza) {