| Index: chrome/common/net/gaia/gaia_auth_consumer.cc
|
| diff --git a/chrome/common/net/gaia/gaia_auth_consumer.cc b/chrome/common/net/gaia/gaia_auth_consumer.cc
|
| index 7c47b60d5f030f6d6a993a84ce4e7e1816838180..7ca6399f4525ecf89c9d14562ee28be4e2f8f8e4 100644
|
| --- a/chrome/common/net/gaia/gaia_auth_consumer.cc
|
| +++ b/chrome/common/net/gaia/gaia_auth_consumer.cc
|
| @@ -4,6 +4,8 @@
|
|
|
| #include "chrome/common/net/gaia/gaia_auth_consumer.h"
|
|
|
| +#include "base/logging.h"
|
| +
|
| GaiaAuthConsumer::ClientLoginResult::ClientLoginResult()
|
| : two_factor(false) {
|
| }
|
| @@ -29,3 +31,21 @@ bool GaiaAuthConsumer::ClientLoginResult::operator==(
|
| data == b.data &&
|
| two_factor == b.two_factor;
|
| }
|
| +
|
| +// virtual
|
| +void GaiaAuthConsumer::OnAuthenticationSuccess(
|
| + const AuthenticationConsumer::AuthenticationResult& result) {
|
| + OnClientLoginSuccess(
|
| + static_cast<const GaiaAuthConsumer::ClientLoginResult&>(result));
|
| +}
|
| +
|
| +// virtual
|
| +void GaiaAuthConsumer::OnAuthenticationFailure(
|
| + const GoogleServiceAuthError& error) {
|
| + OnClientLoginFailure(error);
|
| +}
|
| +
|
| +// virtual
|
| +bool GaiaAuthConsumer::ClientLoginResult::IsValid() const {
|
| + return !lsid.empty() && !sid.empty();
|
| +}
|
|
|