Index: chrome/browser/extensions/extension_browsertests_misc.cc |
=================================================================== |
--- chrome/browser/extensions/extension_browsertests_misc.cc (revision 56849) |
+++ chrome/browser/extensions/extension_browsertests_misc.cc (working copy) |
@@ -614,11 +614,8 @@ |
L"window.domAutomationController.send(true);", &result); |
EXPECT_TRUE(result); |
- // Now the active tab in last active window should be the new tab. |
- Browser* last_active_browser = BrowserList::GetLastActive(); |
- EXPECT_TRUE(last_active_browser); |
- TabContents* newtab = last_active_browser->GetSelectedTabContents(); |
- EXPECT_TRUE(newtab); |
+ // Now the current tab should be the new tab. |
+ TabContents* newtab = browser->GetSelectedTabContents(); |
GURL expected_url = start_url.Resolve(newtab_url); |
if (!newtab->controller().GetLastCommittedEntry() || |
newtab->controller().GetLastCommittedEntry()->url() != expected_url) |