| Index: chrome/browser/ui/webui/workers_ui_browsertest.cc
|
| ===================================================================
|
| --- chrome/browser/ui/webui/workers_ui_browsertest.cc (revision 116109)
|
| +++ chrome/browser/ui/webui/workers_ui_browsertest.cc (working copy)
|
| @@ -6,9 +6,11 @@
|
| #include "chrome/common/url_constants.h"
|
| #include "chrome/test/base/in_process_browser_test.h"
|
| #include "chrome/test/base/ui_test_utils.h"
|
| -#include "content/browser/tab_contents/tab_contents.h"
|
| #include "content/public/browser/navigation_details.h"
|
| +#include "content/public/browser/web_contents.h"
|
|
|
| +using content::WebContents;
|
| +
|
| namespace {
|
|
|
| const char kSharedWorkerTestPage[] =
|
| @@ -44,13 +46,13 @@
|
| NEW_FOREGROUND_TAB,
|
| ui_test_utils::BROWSER_TEST_WAIT_FOR_NAVIGATION);
|
|
|
| - TabContents* tab_contents = browser()->GetSelectedTabContents();
|
| - ASSERT_TRUE(tab_contents != NULL);
|
| + WebContents* web_contents = browser()->GetSelectedWebContents();
|
| + ASSERT_TRUE(web_contents != NULL);
|
|
|
| std::string result;
|
| ASSERT_TRUE(
|
| ui_test_utils::ExecuteJavaScriptAndExtractString(
|
| - tab_contents->GetRenderViewHost(),
|
| + web_contents->GetRenderViewHost(),
|
| L"",
|
| L"window.domAutomationController.send("
|
| L"'' + document.getElementsByTagName('td')[1].textContent);",
|
|
|