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

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

Issue 1066843002: Run OAuth token handle check upon user pod selction. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 1218 matching lines...) Expand 10 before | Expand all | Expand 10 after
1229 } 1229 }
1230 1230
1231 void SigninScreenHandler::HandleUpdateOfflineLogin(bool offline_login_active) { 1231 void SigninScreenHandler::HandleUpdateOfflineLogin(bool offline_login_active) {
1232 offline_login_active_ = offline_login_active; 1232 offline_login_active_ = offline_login_active;
1233 } 1233 }
1234 1234
1235 void SigninScreenHandler::HandleFocusPod(const std::string& user_id) { 1235 void SigninScreenHandler::HandleFocusPod(const std::string& user_id) {
1236 SetUserInputMethod(user_id, ime_state_.get()); 1236 SetUserInputMethod(user_id, ime_state_.get());
1237 WallpaperManager::Get()->SetUserWallpaperDelayed(user_id); 1237 WallpaperManager::Get()->SetUserWallpaperDelayed(user_id);
1238 ScreenlockBridge::Get()->SetFocusedUser(user_id); 1238 ScreenlockBridge::Get()->SetFocusedUser(user_id);
1239 if (delegate_)
1240 delegate_->CheckUserStatus(user_id);
Nikita (slow) 2015/04/07 11:18:10 FocusPod maybe called multiple times per user and
1239 if (!test_focus_pod_callback_.is_null()) 1241 if (!test_focus_pod_callback_.is_null())
1240 test_focus_pod_callback_.Run(); 1242 test_focus_pod_callback_.Run();
1241 } 1243 }
1242 1244
1243 void SigninScreenHandler::HandleGetPublicSessionKeyboardLayouts( 1245 void SigninScreenHandler::HandleGetPublicSessionKeyboardLayouts(
1244 const std::string& user_id, 1246 const std::string& user_id,
1245 const std::string& locale) { 1247 const std::string& locale) {
1246 GetKeyboardLayoutsForLocale( 1248 GetKeyboardLayoutsForLocale(
1247 base::Bind(&SigninScreenHandler::SendPublicSessionKeyboardLayouts, 1249 base::Bind(&SigninScreenHandler::SendPublicSessionKeyboardLayouts,
1248 weak_factory_.GetWeakPtr(), 1250 weak_factory_.GetWeakPtr(),
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
1383 return gaia_screen_handler_->frame_error(); 1385 return gaia_screen_handler_->frame_error();
1384 } 1386 }
1385 1387
1386 void SigninScreenHandler::OnCapsLockChanged(bool enabled) { 1388 void SigninScreenHandler::OnCapsLockChanged(bool enabled) {
1387 caps_lock_enabled_ = enabled; 1389 caps_lock_enabled_ = enabled;
1388 if (page_is_ready()) 1390 if (page_is_ready())
1389 CallJS("login.AccountPickerScreen.setCapsLockState", caps_lock_enabled_); 1391 CallJS("login.AccountPickerScreen.setCapsLockState", caps_lock_enabled_);
1390 } 1392 }
1391 1393
1392 } // namespace chromeos 1394 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h ('k') | chromeos/chromeos_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698