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

Unified Diff: chrome/browser/chromeos/login/webui_login_view.cc

Issue 7607019: [ChromeOS] Reset Gaia UI and show error if needed. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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 | « no previous file | chrome/browser/resources/chromeos/login/bubble.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/webui_login_view.cc
diff --git a/chrome/browser/chromeos/login/webui_login_view.cc b/chrome/browser/chromeos/login/webui_login_view.cc
index 5091cb15285b2938ba7f0d64043f3e038707228c..7575c9d21f1fb0b16768345cebf224843d6c3f44 100644
--- a/chrome/browser/chromeos/login/webui_login_view.cc
+++ b/chrome/browser/chromeos/login/webui_login_view.cc
@@ -235,6 +235,12 @@ bool WebUILoginView::TakeFocus(bool reverse) {
void WebUILoginView::HandleKeyboardEvent(const NativeWebKeyboardEvent& event) {
unhandled_keyboard_event_handler_.HandleKeyboardEvent(event,
GetFocusManager());
+
+ // Make sure error bubble is cleared on keyboard event. This is needed
+ // when the focus is inside an iframe.
+ WebUI* web_ui = GetWebUI();
+ if (web_ui)
+ web_ui->CallJavascriptFunction("cr.ui.Oobe.clearErrors");
}
} // namespace chromeos
« no previous file with comments | « no previous file | chrome/browser/resources/chromeos/login/bubble.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698