| Index: chrome/browser/ui/views/constrained_window_views_browsertest.cc
|
| ===================================================================
|
| --- chrome/browser/ui/views/constrained_window_views_browsertest.cc (revision 145001)
|
| +++ chrome/browser/ui/views/constrained_window_views_browsertest.cc (working copy)
|
| @@ -5,6 +5,7 @@
|
| #include "base/memory/weak_ptr.h"
|
| #include "chrome/browser/ui/browser.h"
|
| #include "chrome/browser/ui/browser_commands.h"
|
| +#include "chrome/browser/ui/browser_tabstrip.h"
|
| #include "chrome/browser/ui/constrained_window_tab_helper.h"
|
| #include "chrome/browser/ui/tab_contents/tab_contents.h"
|
| #include "chrome/browser/ui/views/constrained_window_views.h"
|
| @@ -105,7 +106,7 @@
|
| // *) Constrained windows that are queued don't register themselves as
|
| // accelerator targets until they are displayed.
|
| IN_PROC_BROWSER_TEST_F(ConstrainedWindowViewTest, FocusTest) {
|
| - TabContents* tab_contents = browser()->GetActiveTabContents();
|
| + TabContents* tab_contents = chrome::GetActiveTabContents(browser());
|
| ASSERT_TRUE(tab_contents != NULL);
|
| ConstrainedWindowTabHelper* constrained_window_helper =
|
| tab_contents->constrained_window_tab_helper();
|
| @@ -160,7 +161,7 @@
|
| EXPECT_NE(test_dialog2->GetInitiallyFocusedView(),
|
| focus_manager->GetFocusedView());
|
|
|
| - browser()->ActivateTabAt(tab_with_constrained_window, false);
|
| + chrome::ActivateTabAt(browser(), tab_with_constrained_window, false);
|
|
|
| // Activating the previous tab should bring focus to the constrained window.
|
| EXPECT_EQ(test_dialog2->GetInitiallyFocusedView(),
|
|
|