Index: chrome/renderer/autofill/form_autofill_browsertest.cc |
diff --git a/chrome/renderer/autofill/form_autofill_browsertest.cc b/chrome/renderer/autofill/form_autofill_browsertest.cc |
index f3b46da4cb1ffa3a35626418aedee8e6f9645b13..b662bd86e5f927b84ccfc2193023e3f298e001ea 100644 |
--- a/chrome/renderer/autofill/form_autofill_browsertest.cc |
+++ b/chrome/renderer/autofill/form_autofill_browsertest.cc |
@@ -2132,7 +2132,7 @@ TEST_F(FormAutofillTest, OnlyExtractNewForms) { |
ASSERT_TRUE(forms.empty()); |
// Append to the current form will re-extract. |
- ExecuteJavaScript( |
+ ExecuteJavaScriptForTests( |
"var newInput = document.createElement('input');" |
"newInput.setAttribute('type', 'text');" |
"newInput.setAttribute('id', 'telephone');" |
@@ -2169,7 +2169,7 @@ TEST_F(FormAutofillTest, OnlyExtractNewForms) { |
forms.clear(); |
// Completely new form will also be extracted. |
- ExecuteJavaScript( |
+ ExecuteJavaScriptForTests( |
"var newForm=document.createElement('form');" |
"newForm.id='new_testform';" |
"newForm.action='http://google.com';" |