From 7467e918801b9f7038e4c7220ab1839e148be378 Mon Sep 17 00:00:00 2001 From: Samuel Attard Date: Thu, 21 Mar 2019 20:15:31 -0700 Subject: [PATCH] fix: RFH->ExecuteJavascriptForTesting now requires a callback Refs: https://chromium-review.googlesource.com/c/chromium/src/+/1492042 --- atom/browser/ui/inspectable_web_contents_impl.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/atom/browser/ui/inspectable_web_contents_impl.cc b/atom/browser/ui/inspectable_web_contents_impl.cc index ed6dc741a911..fa690427313e 100644 --- a/atom/browser/ui/inspectable_web_contents_impl.cc +++ b/atom/browser/ui/inspectable_web_contents_impl.cc @@ -889,7 +889,8 @@ void InspectableWebContentsImpl::DidFinishNavigation( base::GenerateGUID().c_str()); // Invoking content::DevToolsFrontendHost::SetupExtensionsAPI(frame, script); // should be enough, but it seems to be a noop currently. - frame->ExecuteJavaScriptForTests(base::UTF8ToUTF16(script)); + frame->ExecuteJavaScriptForTests(base::UTF8ToUTF16(script), + base::NullCallback()); } void InspectableWebContentsImpl::SendMessageAck(int request_id,