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

Unified Diff: chrome/browser/ui/signin_view_controller_delegate.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/ui/signin_view_controller_delegate.cc
diff --git a/chrome/browser/ui/signin_view_controller_delegate.cc b/chrome/browser/ui/signin_view_controller_delegate.cc
index f923845db3776ba75f0830b21179db8c59972b74..00f70601746977957dfb1be06bd6b0d826382a17 100644
--- a/chrome/browser/ui/signin_view_controller_delegate.cc
+++ b/chrome/browser/ui/signin_view_controller_delegate.cc
@@ -52,9 +52,11 @@ void SigninViewControllerDelegate::LoadingStateChanged(
content::WebContents* source,
bool to_different_document) {
if (CanGoBack(source))
- source->GetWebUI()->CallJavascriptFunction("inline.login.showBackButton");
+ source->GetWebUI()->CallJavascriptFunctionUnsafe(
+ "inline.login.showBackButton");
else
- source->GetWebUI()->CallJavascriptFunction("inline.login.showCloseButton");
+ source->GetWebUI()->CallJavascriptFunctionUnsafe(
+ "inline.login.showCloseButton");
}
void SigninViewControllerDelegate::PerformNavigation() {
« no previous file with comments | « chrome/browser/ui/app_list/start_page_service.cc ('k') | chrome/browser/ui/webui/app_launcher_login_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698