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

Unified Diff: chrome/browser/printing/print_preview_pdf_generated_browsertest.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/printing/print_preview_pdf_generated_browsertest.cc
diff --git a/chrome/browser/printing/print_preview_pdf_generated_browsertest.cc b/chrome/browser/printing/print_preview_pdf_generated_browsertest.cc
index 53c9054bae9e9230b4a8dfceee5f1a1ed3de8381..efbcbc32c99fa0c42c028458e697004a7033ac9a 100644
--- a/chrome/browser/printing/print_preview_pdf_generated_browsertest.cc
+++ b/chrome/browser/printing/print_preview_pdf_generated_browsertest.cc
@@ -207,7 +207,7 @@ class PrintPreviewObserver : public WebContentsObserver {
}
ASSERT_FALSE(script_argument.empty());
- GetUI()->web_ui()->CallJavascriptFunction(
+ GetUI()->web_ui()->CallJavascriptFunctionUnsafe(
"onManipulateSettingsForTest", script_argument);
}
@@ -281,7 +281,8 @@ class PrintPreviewObserver : public WebContentsObserver {
// The |ui->web_ui()| owns the message handler.
ui->web_ui()->AddMessageHandler(new UIDoneLoadingMessageHandler(this));
- ui->web_ui()->CallJavascriptFunction("onEnableManipulateSettingsForTest");
+ ui->web_ui()->CallJavascriptFunctionUnsafe(
+ "onEnableManipulateSettingsForTest");
}
void DidCloneToNewWebContents(WebContents* old_web_contents,
« no previous file with comments | « chrome/browser/chromeos/login/ui/webui_login_view.cc ('k') | chrome/browser/ui/app_list/start_page_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698