Index: chrome/renderer/autofill/autofill_renderer_browsertest.cc |
diff --git a/chrome/renderer/autofill/autofill_renderer_browsertest.cc b/chrome/renderer/autofill/autofill_renderer_browsertest.cc |
index f8f6bf998b993dba4338ab88d3793a5ac26b755c..f8bde26ba9b7d1514928dc59a4669bc956190c1a 100644 |
--- a/chrome/renderer/autofill/autofill_renderer_browsertest.cc |
+++ b/chrome/renderer/autofill/autofill_renderer_browsertest.cc |
@@ -122,7 +122,7 @@ TEST_F(AutofillRendererTest, SendForms) { |
// Dynamically create a new form. A new message should be sent for it, but |
// not for the previous form. |
- ExecuteJavaScript( |
+ ExecuteJavaScriptForTests( |
"var newForm=document.createElement('form');" |
"newForm.id='new_testform';" |
"newForm.action='http://google.com';" |
@@ -220,7 +220,7 @@ TEST_F(AutofillRendererTest, DynamicallyAddedUnownedFormElements) { |
render_thread_->sink().ClearMessages(); |
- ExecuteJavaScript("AddFields()"); |
+ ExecuteJavaScriptForTests("AddFields()"); |
msg_loop_.RunUntilIdle(); |
message = render_thread_->sink().GetFirstMessageMatching( |