| 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,
|
|
|