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

Unified Diff: chrome/common/net/gaia/gaia_auth_consumer.cc

Issue 6894027: Initial refactoring complete Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fixed some tests that were broken by previous refactoring Created 9 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
« no previous file with comments | « chrome/common/net/gaia/gaia_auth_consumer.h ('k') | chrome/common/net/gaia/gaia_auth_fetcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
+}
« no previous file with comments | « chrome/common/net/gaia/gaia_auth_consumer.h ('k') | chrome/common/net/gaia/gaia_auth_fetcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698