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

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

Issue 2697063004: Fix of "login is not defined" error in OOBE (Closed)
Patch Set: Move CallJSOrDefer to OobeUI Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/webui/chromeos/login/oobe_ui.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc
diff --git a/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc b/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc
index cf023763f334e81d2a5efb3dcdeb3b0cd3ce2f4e..70a88e012bd60d76f87c6121cf1ee06d051c90bc 100644
--- a/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc
+++ b/chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc
@@ -1128,7 +1128,8 @@ void SigninScreenHandler::SuspendDone(const base::TimeDelta& sleep_duration) {
void SigninScreenHandler::OnTouchViewToggled(bool enabled) {
touch_view_enabled_ = enabled;
- CallJS("login.AccountPickerScreen.setTouchViewState", enabled);
+ GetOobeUI()->CallJSOrDefer("login.AccountPickerScreen.setTouchViewState",
Alexander Alekseev 2017/02/21 23:46:49 GetOobeUI() is a member of BaseScreenHandler. Thi
Wenzhao (Colin) Zang 2017/02/22 02:53:34 If BaseScreenHandler calls CallJSOrDeferImpl() in
+ this, enabled);
}
bool SigninScreenHandler::ShouldLoadGaia() const {
« no previous file with comments | « chrome/browser/ui/webui/chromeos/login/oobe_ui.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698