| Index: chrome/browser/geolocation/geolocation_browsertest.cc
|
| diff --git a/chrome/browser/geolocation/geolocation_browsertest.cc b/chrome/browser/geolocation/geolocation_browsertest.cc
|
| index 4d7812ed93a653deea051a0ba45ca49a855c4606..28f5e7d8f9c8f71a25157227515ef462cc79eed4 100644
|
| --- a/chrome/browser/geolocation/geolocation_browsertest.cc
|
| +++ b/chrome/browser/geolocation/geolocation_browsertest.cc
|
| @@ -90,7 +90,8 @@ IFrameLoader::IFrameLoader(Browser* browser, int iframe_id, const GURL& url)
|
| "window.domAutomationController.setAutomationId(0);"
|
| "window.domAutomationController.send(addIFrame(%d, \"%s\"));",
|
| iframe_id, url.spec().c_str()));
|
| - web_contents->GetMainFrame()->ExecuteJavaScript(base::UTF8ToUTF16(script));
|
| + web_contents->GetMainFrame()->ExecuteJavaScriptForTests(
|
| + base::UTF8ToUTF16(script));
|
| content::RunMessageLoop();
|
|
|
| EXPECT_EQ(base::StringPrintf("\"%d\"", iframe_id), javascript_response_);
|
|
|