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

Unified Diff: chrome/browser/chromeos/login/lock/webui_screen_locker.cc

Issue 1995113002: Rename WebUI::CallJavascriptFunction to WebUI::CallJavascriptFunctionUnsafe (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
Index: chrome/browser/chromeos/login/lock/webui_screen_locker.cc
diff --git a/chrome/browser/chromeos/login/lock/webui_screen_locker.cc b/chrome/browser/chromeos/login/lock/webui_screen_locker.cc
index b5c75d29a78565d3820a50f1eba0f6cc91741b31..b15895cdb94dae8e3b8278221d8e528a0f25c3da 100644
--- a/chrome/browser/chromeos/login/lock/webui_screen_locker.cc
+++ b/chrome/browser/chromeos/login/lock/webui_screen_locker.cc
@@ -131,11 +131,12 @@ void WebUIScreenLocker::ShowErrorMessage(
}
void WebUIScreenLocker::AnimateAuthenticationSuccess() {
- GetWebUI()->CallJavascriptFunction("cr.ui.Oobe.animateAuthenticationSuccess");
+ GetWebUI()->CallJavascriptFunctionUnsafe(
+ "cr.ui.Oobe.animateAuthenticationSuccess");
}
void WebUIScreenLocker::ClearErrors() {
- GetWebUI()->CallJavascriptFunction("cr.ui.Oobe.clearErrors");
+ GetWebUI()->CallJavascriptFunctionUnsafe("cr.ui.Oobe.clearErrors");
}
gfx::NativeWindow WebUIScreenLocker::GetNativeWindow() const {
@@ -150,13 +151,14 @@ void WebUIScreenLocker::FocusUserPod() {
if (!webui_ready_)
return;
webui_login_->RequestFocus();
- GetWebUI()->CallJavascriptFunction("cr.ui.Oobe.forceLockedUserPodFocus");
+ GetWebUI()->CallJavascriptFunctionUnsafe(
+ "cr.ui.Oobe.forceLockedUserPodFocus");
}
void WebUIScreenLocker::ResetAndFocusUserPod() {
if (!webui_ready_)
return;
- GetWebUI()->CallJavascriptFunction("cr.ui.Oobe.clearUserPodPassword");
+ GetWebUI()->CallJavascriptFunctionUnsafe("cr.ui.Oobe.clearUserPodPassword");
FocusUserPod();
}
@@ -303,7 +305,8 @@ void WebUIScreenLocker::OnLockStateEvent(
// Release capture if any.
aura::client::GetCaptureClient(GetNativeWindow()->GetRootWindow())->
SetCapture(NULL);
- GetWebUI()->CallJavascriptFunction("cr.ui.Oobe.animateOnceFullyDisplayed");
+ GetWebUI()->CallJavascriptFunctionUnsafe(
+ "cr.ui.Oobe.animateOnceFullyDisplayed");
}
}
« no previous file with comments | « chrome/browser/chromeos/login/kiosk_browsertest.cc ('k') | chrome/browser/chromeos/login/ui/webui_login_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698