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

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

Issue 2685793004: Chromad: Wire up displayName and givenName (Closed)
Patch Set: Combine SetDisplayName and SetGivenName into SetDisplayAndGiveName Created 3 years, 10 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 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 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 320
321 bool WebUILoginDisplay::IsUserSigninCompleted() const { 321 bool WebUILoginDisplay::IsUserSigninCompleted() const {
322 return is_signin_completed(); 322 return is_signin_completed();
323 } 323 }
324 324
325 void WebUILoginDisplay::SetDisplayEmail(const std::string& email) { 325 void WebUILoginDisplay::SetDisplayEmail(const std::string& email) {
326 if (delegate_) 326 if (delegate_)
327 delegate_->SetDisplayEmail(email); 327 delegate_->SetDisplayEmail(email);
328 } 328 }
329 329
330 void WebUILoginDisplay::SetDisplayAndGivenName(const std::string& display_name,
331 const std::string& given_name) {
332 if (delegate_)
333 delegate_->SetDisplayAndGivenName(display_name, given_name);
334 }
335
330 void WebUILoginDisplay::Signout() { 336 void WebUILoginDisplay::Signout() {
331 delegate_->Signout(); 337 delegate_->Signout();
332 } 338 }
333 339
334 void WebUILoginDisplay::OnUserActivity(const ui::Event* event) { 340 void WebUILoginDisplay::OnUserActivity(const ui::Event* event) {
335 if (delegate_) 341 if (delegate_)
336 delegate_->ResetAutoLoginTimer(); 342 delegate_->ResetAutoLoginTimer();
337 } 343 }
338 344
339 bool WebUILoginDisplay::IsUserWhitelisted(const AccountId& account_id) { 345 bool WebUILoginDisplay::IsUserWhitelisted(const AccountId& account_id) {
340 DCHECK(delegate_); 346 DCHECK(delegate_);
341 if (delegate_) 347 if (delegate_)
342 return delegate_->IsUserWhitelisted(account_id); 348 return delegate_->IsUserWhitelisted(account_id);
343 return true; 349 return true;
344 } 350 }
345 351
346 } // namespace chromeos 352 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/ui/webui_login_display.h ('k') | chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698