Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / libjingle / source / talk / xmpp / rostermoduleimpl.cc
index 993cfa9..e52e78e 100644 (file)
  * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#include <vector>
-#include <string>
-#include <map>
 #include <algorithm>
-#include <sstream>
 #include <iostream>
-#include "talk/base/common.h"
-#include "talk/base/stringencode.h"
+#include <map>
+#include <sstream>
+#include <string>
+#include <vector>
 #include "talk/xmpp/constants.h"
 #include "talk/xmpp/rostermoduleimpl.h"
+#include "webrtc/base/common.h"
+#include "webrtc/base/stringencode.h"
 
 namespace buzz {
 
@@ -217,7 +217,7 @@ XmppPresenceImpl::priority() const {
     return 0;
 
   int raw_priority = 0;
-  if (!talk_base::FromString(raw_xml_->TextNamed(QN_PRIORITY), &raw_priority))
+  if (!rtc::FromString(raw_xml_->TextNamed(QN_PRIORITY), &raw_priority))
     raw_priority = 0;
   if (raw_priority < -128)
     raw_priority = -128;
@@ -238,7 +238,7 @@ XmppPresenceImpl::set_priority(int priority) {
   raw_xml_->ClearNamedChildren(QN_PRIORITY);
   if (0 != priority) {
     std::string priority_string;
-    if (talk_base::ToString(priority, &priority_string)) {
+    if (rtc::ToString(priority, &priority_string)) {
       raw_xml_->AddElement(new XmlElement(QN_PRIORITY));
       raw_xml_->AddText(priority_string, 1);
     }