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

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

Issue 405093003: Taking screenshots while running a test (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 1097 matching lines...) Expand 10 before | Expand all | Expand 10 after
1108 bool animated, 1108 bool animated,
1109 bool showGuest) { 1109 bool showGuest) {
1110 CallJS("login.AccountPickerScreen.loadUsers", 1110 CallJS("login.AccountPickerScreen.loadUsers",
1111 users_list, 1111 users_list,
1112 animated, 1112 animated,
1113 delegate_->IsShowGuest()); 1113 delegate_->IsShowGuest());
1114 } 1114 }
1115 1115
1116 void SigninScreenHandler::HandleAccountPickerReady() { 1116 void SigninScreenHandler::HandleAccountPickerReady() {
1117 VLOG(0) << "Login WebUI >> AccountPickerReady"; 1117 VLOG(0) << "Login WebUI >> AccountPickerReady";
1118
ygorshenin1 2014/07/21 09:48:23 nit: could you please restore back a blank line?
Lisa Ignatyeva 2014/07/21 13:41:04 Done.
1119 if (delegate_ && !ScreenLocker::default_screen_locker() && 1118 if (delegate_ && !ScreenLocker::default_screen_locker() &&
1120 !chromeos::IsMachineHWIDCorrect() && 1119 !chromeos::IsMachineHWIDCorrect() &&
1121 !oobe_ui_) { 1120 !oobe_ui_) {
1122 delegate_->ShowWrongHWIDScreen(); 1121 delegate_->ShowWrongHWIDScreen();
1123 return; 1122 return;
1124 } 1123 }
1125 1124
1126 PrefService* prefs = g_browser_process->local_state(); 1125 PrefService* prefs = g_browser_process->local_state();
1127 if (prefs->GetBoolean(prefs::kFactoryResetRequested)) { 1126 if (prefs->GetBoolean(prefs::kFactoryResetRequested)) {
1128 if (core_oobe_actor_) { 1127 if (core_oobe_actor_) {
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
1387 return gaia_screen_handler_->frame_error(); 1386 return gaia_screen_handler_->frame_error();
1388 } 1387 }
1389 1388
1390 void SigninScreenHandler::OnCapsLockChanged(bool enabled) { 1389 void SigninScreenHandler::OnCapsLockChanged(bool enabled) {
1391 caps_lock_enabled_ = enabled; 1390 caps_lock_enabled_ = enabled;
1392 if (page_is_ready()) 1391 if (page_is_ready())
1393 CallJS("login.AccountPickerScreen.setCapsLockState", caps_lock_enabled_); 1392 CallJS("login.AccountPickerScreen.setCapsLockState", caps_lock_enabled_);
1394 } 1393 }
1395 1394
1396 } // namespace chromeos 1395 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698