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

Unified Diff: chrome/browser/chromeos/login/user.cc

Issue 12704002: Support for auth code based authentication flow for both app and web UI driven flow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase4 Created 7 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
« no previous file with comments | « chrome/browser/chromeos/login/user.h ('k') | chrome/browser/chromeos/login/webui_login_display.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/user.cc
diff --git a/chrome/browser/chromeos/login/user.cc b/chrome/browser/chromeos/login/user.cc
index acdaa04b4a6c5bdf6c0f44e6e0d1f42e91564f4f..7e1c53e16ad1229540c5959e095a3e166d179ddb 100644
--- a/chrome/browser/chromeos/login/user.cc
+++ b/chrome/browser/chromeos/login/user.cc
@@ -111,6 +111,23 @@ class PublicAccountUser : public User {
DISALLOW_COPY_AND_ASSIGN(PublicAccountUser);
};
+UserCredentials::UserCredentials() {
+}
+
+UserCredentials::UserCredentials(const std::string& username,
+ const std::string& password,
+ const std::string& auth_code)
+ : username(username),
+ password(password),
+ auth_code(auth_code) {
+}
+
+bool UserCredentials::operator==(const UserCredentials& cred) const {
+ return cred.username == username &&
+ cred.password == password &&
+ cred.auth_code == auth_code;
+}
+
string16 User::GetDisplayName() const {
// Fallback to the email account name in case display name haven't been set.
return display_name_.empty() ?
« no previous file with comments | « chrome/browser/chromeos/login/user.h ('k') | chrome/browser/chromeos/login/webui_login_display.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698