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

Side by Side Diff: chrome/browser/chromeos/login/signin_screen_controller.cc

Issue 2859363003: cros: Initial structure for views-based lock. (Closed)
Patch Set: Address comments Created 3 years, 7 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
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/signin_screen_controller.h" 5 #include "chrome/browser/chromeos/login/signin_screen_controller.h"
6 6
7 #include "chrome/browser/chrome_notification_types.h" 7 #include "chrome/browser/chrome_notification_types.h"
8 #include "chrome/browser/chromeos/login/lock/screen_locker.h" 8 #include "chrome/browser/chromeos/login/lock/screen_locker.h"
9 #include "chrome/browser/chromeos/login/lock/webui_screen_locker.h" 9 #include "chrome/browser/chromeos/login/lock/webui_screen_locker.h"
10 #include "chrome/browser/chromeos/login/screens/chrome_user_selection_screen.h" 10 #include "chrome/browser/chromeos/login/screens/chrome_user_selection_screen.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 bool show_guest) { 53 bool show_guest) {
54 // TODO(antrim) : This dependency should be inverted, screen should ask about 54 // TODO(antrim) : This dependency should be inverted, screen should ask about
55 // users. 55 // users.
56 user_selection_screen_->Init(users, show_guest); 56 user_selection_screen_->Init(users, show_guest);
57 } 57 }
58 58
59 void SignInScreenController::OnSigninScreenReady() { 59 void SignInScreenController::OnSigninScreenReady() {
60 gaia_screen_->MaybePreloadAuthExtension(); 60 gaia_screen_->MaybePreloadAuthExtension();
61 user_selection_screen_->InitEasyUnlock(); 61 user_selection_screen_->InitEasyUnlock();
62 if (ScreenLocker::default_screen_locker()) 62 if (ScreenLocker::default_screen_locker())
63 ScreenLocker::default_screen_locker()->web_ui()->OnLockWebUIReady(); 63 ScreenLocker::default_screen_locker()->delegate()->OnLockWebUIReady();
64 } 64 }
65 65
66 void SignInScreenController::RemoveUser(const AccountId& account_id) { 66 void SignInScreenController::RemoveUser(const AccountId& account_id) {
67 user_manager::UserManager::Get()->RemoveUser(account_id, this); 67 user_manager::UserManager::Get()->RemoveUser(account_id, this);
68 } 68 }
69 69
70 void SignInScreenController::OnBeforeUserRemoved(const AccountId& account_id) { 70 void SignInScreenController::OnBeforeUserRemoved(const AccountId& account_id) {
71 user_selection_screen_->OnBeforeUserRemoved(account_id); 71 user_selection_screen_->OnBeforeUserRemoved(account_id);
72 } 72 }
73 73
(...skipping 28 matching lines...) Expand all
102 102
103 // Stop listening to any notification once session has started. 103 // Stop listening to any notification once session has started.
104 // Sign in screen objects are marked for deletion with DeleteSoon so 104 // Sign in screen objects are marked for deletion with DeleteSoon so
105 // make sure no object would be used after session has started. 105 // make sure no object would be used after session has started.
106 // http://crbug.com/125276 106 // http://crbug.com/125276
107 registrar_.RemoveAll(); 107 registrar_.RemoveAll();
108 user_manager::UserManager::Get()->RemoveObserver(this); 108 user_manager::UserManager::Get()->RemoveObserver(this);
109 } 109 }
110 110
111 } // namespace chromeos 111 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698