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

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

Issue 1110493002: ChromeOS Gaia: UI polishing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changed line-height for gaia-body-text Created 5 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) 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 #include <vector> 8 #include <vector>
9 9
10 #include "ash/shell.h" 10 #include "ash/shell.h"
(...skipping 991 matching lines...) Expand 10 before | Expand all | Expand 10 after
1002 1002
1003 void SigninScreenHandler::UpdateAddButtonStatus() { 1003 void SigninScreenHandler::UpdateAddButtonStatus() {
1004 CallJS("cr.ui.login.DisplayManager.updateAddUserButtonStatus", 1004 CallJS("cr.ui.login.DisplayManager.updateAddUserButtonStatus",
1005 AllWhitelistedUsersPresent()); 1005 AllWhitelistedUsersPresent());
1006 } 1006 }
1007 1007
1008 void SigninScreenHandler::HandleAuthenticateUser(const std::string& username, 1008 void SigninScreenHandler::HandleAuthenticateUser(const std::string& username,
1009 const std::string& password) { 1009 const std::string& password) {
1010 if (!delegate_) 1010 if (!delegate_)
1011 return; 1011 return;
1012 UserContext user_context(username); 1012 UserContext user_context(gaia::SanitizeEmail(username));
1013 user_context.SetKey(Key(password)); 1013 user_context.SetKey(Key(password));
1014 delegate_->Login(user_context, SigninSpecifics()); 1014 delegate_->Login(user_context, SigninSpecifics());
1015 } 1015 }
1016 1016
1017 void SigninScreenHandler::HandleLaunchIncognito() { 1017 void SigninScreenHandler::HandleLaunchIncognito() {
1018 UserContext context(user_manager::USER_TYPE_GUEST, std::string()); 1018 UserContext context(user_manager::USER_TYPE_GUEST, std::string());
1019 if (delegate_) 1019 if (delegate_)
1020 delegate_->Login(context, SigninSpecifics()); 1020 delegate_->Login(context, SigninSpecifics());
1021 } 1021 }
1022 1022
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
1406 return gaia_screen_handler_->frame_error(); 1406 return gaia_screen_handler_->frame_error();
1407 } 1407 }
1408 1408
1409 void SigninScreenHandler::OnCapsLockChanged(bool enabled) { 1409 void SigninScreenHandler::OnCapsLockChanged(bool enabled) {
1410 caps_lock_enabled_ = enabled; 1410 caps_lock_enabled_ = enabled;
1411 if (page_is_ready()) 1411 if (page_is_ready())
1412 CallJS("login.AccountPickerScreen.setCapsLockState", caps_lock_enabled_); 1412 CallJS("login.AccountPickerScreen.setCapsLockState", caps_lock_enabled_);
1413 } 1413 }
1414 1414
1415 } // namespace chromeos 1415 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698