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

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

Issue 1089853002: Fix GAIA reload after switching from captive portal to other network. (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
« no previous file with comments | « no previous file | 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 "ash/shell.h" 10 #include "ash/shell.h"
(...skipping 788 matching lines...) Expand 10 before | Expand all | Expand 10 after
799 if (!IsSigninScreenHiddenByError()) 799 if (!IsSigninScreenHiddenByError())
800 return; 800 return;
801 801
802 gaia_reload_reason_ = NetworkError::ERROR_REASON_NONE; 802 gaia_reload_reason_ = NetworkError::ERROR_REASON_NONE;
803 803
804 network_error_model_->Hide(); 804 network_error_model_->Hide();
805 histogram_helper_->OnErrorHide(); 805 histogram_helper_->OnErrorHide();
806 806
807 // Forces a reload for Gaia screen on hiding error message. 807 // Forces a reload for Gaia screen on hiding error message.
808 if (IsGaiaVisible() || IsGaiaHiddenByError()) 808 if (IsGaiaVisible() || IsGaiaHiddenByError())
809 ReloadGaia(false); 809 ReloadGaia(reason == NetworkError::ERROR_REASON_NETWORK_STATE_CHANGED);
810 } 810 }
811 811
812 void SigninScreenHandler::ReloadGaia(bool force_reload) { 812 void SigninScreenHandler::ReloadGaia(bool force_reload) {
813 gaia_screen_handler_->ReloadGaia(force_reload); 813 gaia_screen_handler_->ReloadGaia(force_reload);
814 } 814 }
815 815
816 void SigninScreenHandler::Initialize() { 816 void SigninScreenHandler::Initialize() {
817 // If delegate_ is NULL here (e.g. WebUIScreenLocker has been destroyed), 817 // If delegate_ is NULL here (e.g. WebUIScreenLocker has been destroyed),
818 // don't do anything, just return. 818 // don't do anything, just return.
819 if (!delegate_) 819 if (!delegate_)
(...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after
1394 return gaia_screen_handler_->frame_error(); 1394 return gaia_screen_handler_->frame_error();
1395 } 1395 }
1396 1396
1397 void SigninScreenHandler::OnCapsLockChanged(bool enabled) { 1397 void SigninScreenHandler::OnCapsLockChanged(bool enabled) {
1398 caps_lock_enabled_ = enabled; 1398 caps_lock_enabled_ = enabled;
1399 if (page_is_ready()) 1399 if (page_is_ready())
1400 CallJS("login.AccountPickerScreen.setCapsLockState", caps_lock_enabled_); 1400 CallJS("login.AccountPickerScreen.setCapsLockState", caps_lock_enabled_);
1401 } 1401 }
1402 1402
1403 } // namespace chromeos 1403 } // namespace chromeos
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698