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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/browser/chromeos/login/webui_screen_locker.h" 5 #include "chrome/browser/chromeos/login/webui_screen_locker.h"
6 6
7 #include "ash/shell.h" 7 #include "ash/shell.h"
8 #include "ash/wm/session_state_controller.h" 8 #include "ash/wm/session_state_controller.h"
9 #include "ash/wm/session_state_observer.h" 9 #include "ash/wm/session_state_observer.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 189
190 void WebUIScreenLocker::CreateAccount() { 190 void WebUIScreenLocker::CreateAccount() {
191 NOTREACHED(); 191 NOTREACHED();
192 } 192 }
193 193
194 void WebUIScreenLocker::CreateLocallyManagedUser(const string16& display_name, 194 void WebUIScreenLocker::CreateLocallyManagedUser(const string16& display_name,
195 const std::string& password) { 195 const std::string& password) {
196 NOTREACHED(); 196 NOTREACHED();
197 } 197 }
198 198
199 void WebUIScreenLocker::CompleteLogin(const std::string& username, 199 void WebUIScreenLocker::CompleteLogin(const UserCredentials& credentials) {
200 const std::string& password) {
201 NOTREACHED(); 200 NOTREACHED();
202 } 201 }
203 202
204 string16 WebUIScreenLocker::GetConnectedNetworkName() { 203 string16 WebUIScreenLocker::GetConnectedNetworkName() {
205 return GetCurrentNetworkName(); 204 return GetCurrentNetworkName();
206 } 205 }
207 206
208 void WebUIScreenLocker::Login(const std::string& username, 207 void WebUIScreenLocker::Login(const UserCredentials& credentials) {
209 const std::string& password) {
210 chromeos::ScreenLocker::default_screen_locker()->Authenticate( 208 chromeos::ScreenLocker::default_screen_locker()->Authenticate(
211 ASCIIToUTF16(password)); 209 ASCIIToUTF16(credentials.password));
212 } 210 }
213 211
214 void WebUIScreenLocker::LoginAsRetailModeUser() { 212 void WebUIScreenLocker::LoginAsRetailModeUser() {
215 NOTREACHED(); 213 NOTREACHED();
216 } 214 }
217 215
218 void WebUIScreenLocker::LoginAsGuest() { 216 void WebUIScreenLocker::LoginAsGuest() {
219 NOTREACHED(); 217 NOTREACHED();
220 } 218 }
221 219
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 } 297 }
300 298
301 void WebUIScreenLocker::SystemResumed(const base::TimeDelta& sleep_duration) { 299 void WebUIScreenLocker::SystemResumed(const base::TimeDelta& sleep_duration) {
302 content::BrowserThread::PostTask( 300 content::BrowserThread::PostTask(
303 content::BrowserThread::UI, 301 content::BrowserThread::UI,
304 FROM_HERE, 302 FROM_HERE,
305 base::Bind(&WebUIScreenLocker::FocusUserPod, weak_factory_.GetWeakPtr())); 303 base::Bind(&WebUIScreenLocker::FocusUserPod, weak_factory_.GetWeakPtr()));
306 } 304 }
307 305
308 } // namespace chromeos 306 } // namespace chromeos
OLDNEW
« 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