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

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

Issue 1470633002: ChromeOS: Fix removeUser button on signin screen. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@462823--Chrome-OS-handles-deletion-of-Gmail-account-poorly--Fix-GetKnownUserAccountId
Patch Set: Rebased. Created 5 years 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 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 "chrome/browser/chromeos/accessibility/accessibility_manager.h" 7 #include "chrome/browser/chromeos/accessibility/accessibility_manager.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/screens/chrome_user_selection_screen.h" 9 #include "chrome/browser/chromeos/login/screens/chrome_user_selection_screen.h"
10 #include "chrome/browser/chromeos/login/signin_screen_controller.h" 10 #include "chrome/browser/chromeos/login/signin_screen_controller.h"
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 login::SignInAccountId().GetUserEmail()); 241 login::SignInAccountId().GetUserEmail());
242 } 242 }
243 243
244 void WebUILoginDisplay::OnSigninScreenReady() { 244 void WebUILoginDisplay::OnSigninScreenReady() {
245 SignInScreenController::Get()->OnSigninScreenReady(); 245 SignInScreenController::Get()->OnSigninScreenReady();
246 246
247 if (delegate_) 247 if (delegate_)
248 delegate_->OnSigninScreenReady(); 248 delegate_->OnSigninScreenReady();
249 } 249 }
250 250
251 void WebUILoginDisplay::RemoveUser(const std::string& user_id) { 251 void WebUILoginDisplay::RemoveUser(const AccountId& account_id) {
252 SignInScreenController::Get()->RemoveUser(user_id); 252 SignInScreenController::Get()->RemoveUser(account_id);
253 } 253 }
254 254
255 void WebUILoginDisplay::ResyncUserData() { 255 void WebUILoginDisplay::ResyncUserData() {
256 DCHECK(delegate_); 256 DCHECK(delegate_);
257 if (delegate_) 257 if (delegate_)
258 delegate_->ResyncUserData(); 258 delegate_->ResyncUserData();
259 } 259 }
260 260
261 void WebUILoginDisplay::ShowEnterpriseEnrollmentScreen() { 261 void WebUILoginDisplay::ShowEnterpriseEnrollmentScreen() {
262 if (delegate_) 262 if (delegate_)
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 } 327 }
328 328
329 bool WebUILoginDisplay::IsUserWhitelisted(const std::string& user_id) { 329 bool WebUILoginDisplay::IsUserWhitelisted(const std::string& user_id) {
330 DCHECK(delegate_); 330 DCHECK(delegate_);
331 if (delegate_) 331 if (delegate_)
332 return delegate_->IsUserWhitelisted(user_id); 332 return delegate_->IsUserWhitelisted(user_id);
333 return true; 333 return true;
334 } 334 }
335 335
336 } // namespace chromeos 336 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/ui/webui_login_display.h ('k') | chrome/browser/chromeos/login/users/chrome_user_manager_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698