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

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

Issue 626503002: [athena] Various fixes for out-of-box/login (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « chrome/browser/ui/webui/chromeos/login/core_oobe_handler.cc ('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 <algorithm> 7 #include <algorithm>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 1132 matching lines...) Expand 10 before | Expand all | Expand 10 after
1143 args->GetString(0, &email); 1143 args->GetString(0, &email);
1144 1144
1145 gaia_screen_handler_->PopulateEmail(email); 1145 gaia_screen_handler_->PopulateEmail(email);
1146 // Load auth extension. Parameters are: force reload, do not load extension in 1146 // Load auth extension. Parameters are: force reload, do not load extension in
1147 // background, use offline version. 1147 // background, use offline version.
1148 gaia_screen_handler_->LoadAuthExtension(true, false, true); 1148 gaia_screen_handler_->LoadAuthExtension(true, false, true);
1149 UpdateUIState(UI_STATE_GAIA_SIGNIN, NULL); 1149 UpdateUIState(UI_STATE_GAIA_SIGNIN, NULL);
1150 } 1150 }
1151 1151
1152 void SigninScreenHandler::HandleShutdownSystem() { 1152 void SigninScreenHandler::HandleShutdownSystem() {
1153 #if defined(USE_ATHENA)
1154 chromeos::DBusThreadManager::Get()->
1155 GetPowerManagerClient()->RequestShutdown();
1156 #else
1153 ash::Shell::GetInstance()->lock_state_controller()->RequestShutdown(); 1157 ash::Shell::GetInstance()->lock_state_controller()->RequestShutdown();
1158 #endif
1154 } 1159 }
1155 1160
1156 void SigninScreenHandler::HandleLoadWallpaper(const std::string& email) { 1161 void SigninScreenHandler::HandleLoadWallpaper(const std::string& email) {
1157 if (delegate_) 1162 if (delegate_)
1158 delegate_->LoadWallpaper(email); 1163 delegate_->LoadWallpaper(email);
1159 } 1164 }
1160 1165
1161 void SigninScreenHandler::HandleRebootSystem() { 1166 void SigninScreenHandler::HandleRebootSystem() {
1162 chromeos::DBusThreadManager::Get()->GetPowerManagerClient()->RequestRestart(); 1167 chromeos::DBusThreadManager::Get()->GetPowerManagerClient()->RequestRestart();
1163 } 1168 }
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
1582 return gaia_screen_handler_->frame_error(); 1587 return gaia_screen_handler_->frame_error();
1583 } 1588 }
1584 1589
1585 void SigninScreenHandler::OnCapsLockChanged(bool enabled) { 1590 void SigninScreenHandler::OnCapsLockChanged(bool enabled) {
1586 caps_lock_enabled_ = enabled; 1591 caps_lock_enabled_ = enabled;
1587 if (page_is_ready()) 1592 if (page_is_ready())
1588 CallJS("login.AccountPickerScreen.setCapsLockState", caps_lock_enabled_); 1593 CallJS("login.AccountPickerScreen.setCapsLockState", caps_lock_enabled_);
1589 } 1594 }
1590 1595
1591 } // namespace chromeos 1596 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/chromeos/login/core_oobe_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698