Index: chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc |
diff --git a/chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc b/chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc |
index 59c36a804fa97f9b3beaebb407db36314a931605..19b1715499eac43aaf79c7c192ec06cfe6a717d6 100644 |
--- a/chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc |
+++ b/chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc |
@@ -568,7 +568,7 @@ class SafeBrowsingBlockingPageBrowserTest |
// We don't use ExecuteScriptAndGetValue for this one, since clicking |
// the button/link may navigate away before the injected javascript can |
// reply, hanging the test. |
- rvh->GetMainFrame()->ExecuteJavaScript( |
+ rvh->GetMainFrame()->ExecuteJavaScriptForTests( |
base::ASCIIToUTF16( |
"document.getElementById('" + node_id + "').click();\n")); |
return true; |