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

Unified Diff: jingle/notifier/base/gaia_token_pre_xmpp_auth.cc

Issue 13145003: Rewrite std::string("") to std::string(), Linux edition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ugh Created 7 years, 8 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: jingle/notifier/base/gaia_token_pre_xmpp_auth.cc
diff --git a/jingle/notifier/base/gaia_token_pre_xmpp_auth.cc b/jingle/notifier/base/gaia_token_pre_xmpp_auth.cc
index 24aa6a9c45694ac8fafde3fcbe7251b695f54613..f7ddf8dca7b30d0e4394a7f0e304a4f3eb96643c 100644
--- a/jingle/notifier/base/gaia_token_pre_xmpp_auth.cc
+++ b/jingle/notifier/base/gaia_token_pre_xmpp_auth.cc
@@ -101,9 +101,10 @@ std::string GaiaTokenPreXmppAuth::GetAuthMechanism() const {
std::string GaiaTokenPreXmppAuth::ChooseBestSaslMechanism(
const std::vector<std::string> & mechanisms, bool encrypted) {
- return (std::find(mechanisms.begin(),
- mechanisms.end(), auth_mechanism_) !=
- mechanisms.end()) ? auth_mechanism_ : "";
+ return (std::find(mechanisms.begin(), mechanisms.end(), auth_mechanism_) !=
+ mechanisms.end())
+ ? auth_mechanism_
+ : std::string();
}
buzz::SaslMechanism* GaiaTokenPreXmppAuth::CreateSaslMechanism(
« no previous file with comments | « jingle/glue/channel_socket_adapter_unittest.cc ('k') | jingle/notifier/communicator/single_login_attempt.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698