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

Unified Diff: third_party/libjingle_xmpp/xmpp/xmppclient.cc

Issue 2738973004: Replace rtc::CryptString with std::string (Closed)
Patch Set: Created 3 years, 9 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: third_party/libjingle_xmpp/xmpp/xmppclient.cc
diff --git a/third_party/libjingle_xmpp/xmpp/xmppclient.cc b/third_party/libjingle_xmpp/xmpp/xmppclient.cc
index 4860b5b5232f1e2dce467e60e99e33e58b0a21ff..975887382a408bd33d05e9f4b6824ee390e00a83 100644
--- a/third_party/libjingle_xmpp/xmpp/xmppclient.cc
+++ b/third_party/libjingle_xmpp/xmpp/xmppclient.cc
@@ -50,7 +50,7 @@ public:
std::unique_ptr<AsyncSocket> socket_;
std::unique_ptr<XmppEngine> engine_;
std::unique_ptr<PreXmppAuth> pre_auth_;
- rtc::CryptString pass_;
+ std::string pass_;
std::string auth_mechanism_;
std::string auth_token_;
rtc::SocketAddress server_;
@@ -208,13 +208,13 @@ int XmppClient::ProcessStart() {
d_->pre_auth_->StartPreXmppAuth(
d_->engine_->GetUser(), d_->server_, d_->pass_,
d_->auth_mechanism_, d_->auth_token_);
- d_->pass_.Clear(); // done with this;
+ d_->pass_.clear(); // done with this;
return STATE_PRE_XMPP_LOGIN;
}
else {
d_->engine_->SetSaslHandler(new PlainSaslHandler(
d_->engine_->GetUser(), d_->pass_, d_->allow_plain_));
- d_->pass_.Clear(); // done with this;
+ d_->pass_.clear(); // done with this;
return STATE_START_XMPP_LOGIN;
}
}

Powered by Google App Engine
This is Rietveld 408576698