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

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

Issue 427053002: Do not reload account picker when device-local account policy changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Moved policy code to Chrome-specific subclass. Created 6 years, 4 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/ui/webui/chromeos/login/signin_screen_handler.h" 5 #include "chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 859 matching lines...) Expand 10 before | Expand all | Expand 10 after
870 core_oobe_actor_->ShowPasswordChangedScreen(show_password_error); 870 core_oobe_actor_->ShowPasswordChangedScreen(show_password_error);
871 } 871 }
872 872
873 void SigninScreenHandler::ShowSigninScreenForCreds( 873 void SigninScreenHandler::ShowSigninScreenForCreds(
874 const std::string& username, 874 const std::string& username,
875 const std::string& password) { 875 const std::string& password) {
876 DCHECK(gaia_screen_handler_); 876 DCHECK(gaia_screen_handler_);
877 gaia_screen_handler_->ShowSigninScreenForCreds(username, password); 877 gaia_screen_handler_->ShowSigninScreenForCreds(username, password);
878 } 878 }
879 879
880 void SigninScreenHandler::SetPublicSessionDisplayName(
881 const std::string& user_id,
882 const std::string& display_name) {
883 CallJS("login.AccountPickerScreen.setPublicSessionDisplayName",
884 user_id,
885 display_name);
886 }
887
880 void SigninScreenHandler::Observe(int type, 888 void SigninScreenHandler::Observe(int type,
881 const content::NotificationSource& source, 889 const content::NotificationSource& source,
882 const content::NotificationDetails& details) { 890 const content::NotificationDetails& details) {
883 switch (type) { 891 switch (type) {
884 case chrome::NOTIFICATION_AUTH_NEEDED: { 892 case chrome::NOTIFICATION_AUTH_NEEDED: {
885 has_pending_auth_ui_ = true; 893 has_pending_auth_ui_ = true;
886 break; 894 break;
887 } 895 }
888 case chrome::NOTIFICATION_AUTH_SUPPLIED: 896 case chrome::NOTIFICATION_AUTH_SUPPLIED:
889 has_pending_auth_ui_ = false; 897 has_pending_auth_ui_ = false;
(...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after
1469 return gaia_screen_handler_->frame_error(); 1477 return gaia_screen_handler_->frame_error();
1470 } 1478 }
1471 1479
1472 void SigninScreenHandler::OnCapsLockChanged(bool enabled) { 1480 void SigninScreenHandler::OnCapsLockChanged(bool enabled) {
1473 caps_lock_enabled_ = enabled; 1481 caps_lock_enabled_ = enabled;
1474 if (page_is_ready()) 1482 if (page_is_ready())
1475 CallJS("login.AccountPickerScreen.setCapsLockState", caps_lock_enabled_); 1483 CallJS("login.AccountPickerScreen.setCapsLockState", caps_lock_enabled_);
1476 } 1484 }
1477 1485
1478 } // namespace chromeos 1486 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698