| Index: chrome/browser/extensions/extension_incognito_apitest.cc
|
| ===================================================================
|
| --- chrome/browser/extensions/extension_incognito_apitest.cc (revision 116109)
|
| +++ chrome/browser/extensions/extension_incognito_apitest.cc (working copy)
|
| @@ -13,9 +13,11 @@
|
| #include "chrome/browser/ui/browser_window.h"
|
| #include "chrome/common/url_constants.h"
|
| #include "chrome/test/base/ui_test_utils.h"
|
| -#include "content/browser/tab_contents/tab_contents.h"
|
| +#include "content/public/browser/web_contents.h"
|
| #include "net/base/mock_host_resolver.h"
|
|
|
| +using content::WebContents;
|
| +
|
| IN_PROC_BROWSER_TEST_F(ExtensionApiTest, IncognitoNoScript) {
|
| ASSERT_TRUE(StartTestServer());
|
|
|
| @@ -31,7 +33,7 @@
|
|
|
| Browser* otr_browser = BrowserList::FindTabbedBrowser(
|
| browser()->profile()->GetOffTheRecordProfile(), false);
|
| - TabContents* tab = otr_browser->GetSelectedTabContents();
|
| + WebContents* tab = otr_browser->GetSelectedWebContents();
|
|
|
| // Verify the script didn't run.
|
| bool result = false;
|
| @@ -68,7 +70,7 @@
|
|
|
| Browser* otr_browser = BrowserList::FindTabbedBrowser(
|
| browser()->profile()->GetOffTheRecordProfile(), false);
|
| - TabContents* tab = otr_browser->GetSelectedTabContents();
|
| + WebContents* tab = otr_browser->GetSelectedWebContents();
|
|
|
| // Verify the script ran.
|
| bool result = false;
|
|
|