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

Side by Side Diff: trunk/src/chrome/browser/chromeos/login/ui/webui_login_display.cc

Issue 319633005: Revert 275492 "ChromeOS login webui refactoring : Simplify login..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 6 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/ui/webui_login_display.h" 5 #include "chrome/browser/chromeos/login/ui/webui_login_display.h"
6 6
7 #include "ash/shell.h" 7 #include "ash/shell.h"
8 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h" 8 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h"
9 #include "chrome/browser/chromeos/login/lock/screen_locker.h" 9 #include "chrome/browser/chromeos/login/lock/screen_locker.h"
10 #include "chrome/browser/chromeos/login/ui/login_display_host_impl.h" 10 #include "chrome/browser/chromeos/login/ui/login_display_host_impl.h"
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 if (delegate_) 240 if (delegate_)
241 delegate_->CreateAccount(); 241 delegate_->CreateAccount();
242 } 242 }
243 243
244 void WebUILoginDisplay::CompleteLogin(const UserContext& user_context) { 244 void WebUILoginDisplay::CompleteLogin(const UserContext& user_context) {
245 DCHECK(delegate_); 245 DCHECK(delegate_);
246 if (delegate_) 246 if (delegate_)
247 delegate_->CompleteLogin(user_context); 247 delegate_->CompleteLogin(user_context);
248 } 248 }
249 249
250 void WebUILoginDisplay::Login(const UserContext& user_context, 250 void WebUILoginDisplay::Login(const UserContext& user_context) {
251 const SigninSpecifics& specifics) {
252 DCHECK(delegate_); 251 DCHECK(delegate_);
253 if (delegate_) 252 if (delegate_)
254 delegate_->Login(user_context, specifics); 253 delegate_->Login(user_context);
254 }
255
256 void WebUILoginDisplay::LoginAsRetailModeUser() {
257 DCHECK(delegate_);
258 if (delegate_)
259 delegate_->LoginAsRetailModeUser();
260 }
261
262 void WebUILoginDisplay::LoginAsGuest() {
263 DCHECK(delegate_);
264 if (delegate_)
265 delegate_->LoginAsGuest();
266 }
267
268 void WebUILoginDisplay::LoginAsPublicAccount(const std::string& username) {
269 DCHECK(delegate_);
270 if (delegate_)
271 delegate_->LoginAsPublicAccount(username);
255 } 272 }
256 273
257 void WebUILoginDisplay::MigrateUserData(const std::string& old_password) { 274 void WebUILoginDisplay::MigrateUserData(const std::string& old_password) {
258 DCHECK(delegate_); 275 DCHECK(delegate_);
259 if (delegate_) 276 if (delegate_)
260 delegate_->MigrateUserData(old_password); 277 delegate_->MigrateUserData(old_password);
261 } 278 }
262 279
263 void WebUILoginDisplay::LoadWallpaper(const std::string& username) { 280 void WebUILoginDisplay::LoadWallpaper(const std::string& username) {
264 WallpaperManager::Get()->SetUserWallpaperDelayed(username); 281 WallpaperManager::Get()->SetUserWallpaperDelayed(username);
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 352
336 void WebUILoginDisplay::SetDisplayEmail(const std::string& email) { 353 void WebUILoginDisplay::SetDisplayEmail(const std::string& email) {
337 if (delegate_) 354 if (delegate_)
338 delegate_->SetDisplayEmail(email); 355 delegate_->SetDisplayEmail(email);
339 } 356 }
340 357
341 void WebUILoginDisplay::Signout() { 358 void WebUILoginDisplay::Signout() {
342 delegate_->Signout(); 359 delegate_->Signout();
343 } 360 }
344 361
362 void WebUILoginDisplay::LoginAsKioskApp(const std::string& app_id,
363 bool diagnostic_mode) {
364 delegate_->LoginAsKioskApp(app_id, diagnostic_mode);
365 }
366
345 void WebUILoginDisplay::OnUserActivity(const ui::Event* event) { 367 void WebUILoginDisplay::OnUserActivity(const ui::Event* event) {
346 if (delegate_) 368 if (delegate_)
347 delegate_->ResetPublicSessionAutoLoginTimer(); 369 delegate_->ResetPublicSessionAutoLoginTimer();
348 } 370 }
349 371
350 372
351 } // namespace chromeos 373 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698