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

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

Issue 12321136: Password in user pods clears after minute of idle state. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 825 matching lines...) Expand 10 before | Expand all | Expand 10 after
836 836
837 void SigninScreenHandler::HandleGetUsers(const base::ListValue* args) { 837 void SigninScreenHandler::HandleGetUsers(const base::ListValue* args) {
838 SendUserList(false); 838 SendUserList(false);
839 } 839 }
840 840
841 void SigninScreenHandler::ClearAndEnablePassword() { 841 void SigninScreenHandler::ClearAndEnablePassword() {
842 base::FundamentalValue force_online(false); 842 base::FundamentalValue force_online(false);
843 web_ui()->CallJavascriptFunction("cr.ui.Oobe.resetSigninUI", force_online); 843 web_ui()->CallJavascriptFunction("cr.ui.Oobe.resetSigninUI", force_online);
844 } 844 }
845 845
846 void SigninScreenHandler::ClearUserPodPassword() {
847 web_ui()->CallJavascriptFunction("cr.ui.Oobe.clearUserPodPassword");
848 }
849
846 void SigninScreenHandler::OnLoginSuccess(const std::string& username) { 850 void SigninScreenHandler::OnLoginSuccess(const std::string& username) {
847 base::StringValue username_value(username); 851 base::StringValue username_value(username);
848 web_ui()->CallJavascriptFunction("cr.ui.Oobe.onLoginSuccess", username_value); 852 web_ui()->CallJavascriptFunction("cr.ui.Oobe.onLoginSuccess", username_value);
849 } 853 }
850 854
851 void SigninScreenHandler::OnUserRemoved(const std::string& username) { 855 void SigninScreenHandler::OnUserRemoved(const std::string& username) {
852 SendUserList(false); 856 SendUserList(false);
853 } 857 }
854 858
855 void SigninScreenHandler::OnUserImageChanged(const User& user) { 859 void SigninScreenHandler::OnUserImageChanged(const User& user) {
(...skipping 897 matching lines...) Expand 10 before | Expand all | Expand 10 after
1753 if (!cros_settings) 1757 if (!cros_settings)
1754 return false; 1758 return false;
1755 1759
1756 // Offline login is allowed only when user pods are hidden. 1760 // Offline login is allowed only when user pods are hidden.
1757 bool show_pods; 1761 bool show_pods;
1758 cros_settings->GetBoolean(kAccountsPrefShowUserNamesOnSignIn, &show_pods); 1762 cros_settings->GetBoolean(kAccountsPrefShowUserNamesOnSignIn, &show_pods);
1759 return !show_pods; 1763 return !show_pods;
1760 } 1764 }
1761 1765
1762 } // namespace chromeos 1766 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698