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

Side by Side Diff: jingle/notifier/base/gaia_token_pre_xmpp_auth.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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "jingle/notifier/base/gaia_token_pre_xmpp_auth.h" 5 #include "jingle/notifier/base/gaia_token_pre_xmpp_auth.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 token_service_(token_service), 58 token_service_(token_service),
59 auth_mechanism_(auth_mechanism) { 59 auth_mechanism_(auth_mechanism) {
60 DCHECK(!auth_mechanism_.empty()); 60 DCHECK(!auth_mechanism_.empty());
61 } 61 }
62 62
63 GaiaTokenPreXmppAuth::~GaiaTokenPreXmppAuth() { } 63 GaiaTokenPreXmppAuth::~GaiaTokenPreXmppAuth() { }
64 64
65 void GaiaTokenPreXmppAuth::StartPreXmppAuth( 65 void GaiaTokenPreXmppAuth::StartPreXmppAuth(
66 const buzz::Jid& jid, 66 const buzz::Jid& jid,
67 const rtc::SocketAddress& server, 67 const rtc::SocketAddress& server,
68 const rtc::CryptString& pass, 68 const std::string& pass,
69 const std::string& auth_mechanism, 69 const std::string& auth_mechanism,
70 const std::string& auth_token) { 70 const std::string& auth_token) {
71 SignalAuthDone(); 71 SignalAuthDone();
72 } 72 }
73 73
74 bool GaiaTokenPreXmppAuth::IsAuthDone() const { 74 bool GaiaTokenPreXmppAuth::IsAuthDone() const {
75 return true; 75 return true;
76 } 76 }
77 77
78 bool GaiaTokenPreXmppAuth::IsAuthorized() const { 78 bool GaiaTokenPreXmppAuth::IsAuthorized() const {
(...skipping 30 matching lines...) Expand all
109 109
110 buzz::SaslMechanism* GaiaTokenPreXmppAuth::CreateSaslMechanism( 110 buzz::SaslMechanism* GaiaTokenPreXmppAuth::CreateSaslMechanism(
111 const std::string& mechanism) { 111 const std::string& mechanism) {
112 if (mechanism == auth_mechanism_) 112 if (mechanism == auth_mechanism_)
113 return new GaiaCookieMechanism( 113 return new GaiaCookieMechanism(
114 mechanism, username_, token_, token_service_); 114 mechanism, username_, token_, token_service_);
115 return NULL; 115 return NULL;
116 } 116 }
117 117
118 } // namespace notifier 118 } // namespace notifier
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698