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

Unified Diff: chrome/browser/chromeos/login/webui_screen_locker.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
Index: chrome/browser/chromeos/login/webui_screen_locker.cc
diff --git a/chrome/browser/chromeos/login/webui_screen_locker.cc b/chrome/browser/chromeos/login/webui_screen_locker.cc
index 1fc875e5e6672ef1d17deac1f71f50fc78026f42..c80ea5f275b639681f9ef4c486ab4de576e25e8f 100644
--- a/chrome/browser/chromeos/login/webui_screen_locker.cc
+++ b/chrome/browser/chromeos/login/webui_screen_locker.cc
@@ -196,8 +196,7 @@ void WebUIScreenLocker::CreateLocallyManagedUser(const string16& display_name,
NOTREACHED();
}
-void WebUIScreenLocker::CompleteLogin(const std::string& username,
- const std::string& password) {
+void WebUIScreenLocker::CompleteLogin(const UserCredentials& credentials) {
NOTREACHED();
}
@@ -205,10 +204,9 @@ string16 WebUIScreenLocker::GetConnectedNetworkName() {
return GetCurrentNetworkName();
}
-void WebUIScreenLocker::Login(const std::string& username,
- const std::string& password) {
+void WebUIScreenLocker::Login(const UserCredentials& credentials) {
chromeos::ScreenLocker::default_screen_locker()->Authenticate(
- ASCIIToUTF16(password));
+ ASCIIToUTF16(credentials.password));
}
void WebUIScreenLocker::LoginAsRetailModeUser() {
« no previous file with comments | « chrome/browser/chromeos/login/webui_screen_locker.h ('k') | chrome/browser/chromeos/login/wizard_controller_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698