| Index: chrome/browser/extensions/extension_keybinding_apitest.cc
|
| diff --git a/chrome/browser/extensions/extension_keybinding_apitest.cc b/chrome/browser/extensions/extension_keybinding_apitest.cc
|
| index b00097deb23bf6449d7cd770ffcaa680ff23779b..49509d7a79a270881ffe5a554ee69023d8b3e273 100644
|
| --- a/chrome/browser/extensions/extension_keybinding_apitest.cc
|
| +++ b/chrome/browser/extensions/extension_keybinding_apitest.cc
|
| @@ -6,7 +6,7 @@
|
| #include "chrome/browser/extensions/browser_action_test_util.h"
|
| #include "chrome/browser/sessions/restore_tab_helper.h"
|
| #include "chrome/browser/ui/browser.h"
|
| -#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
|
| +#include "chrome/browser/ui/tab_contents/tab_contents.h"
|
| #include "chrome/common/chrome_switches.h"
|
| #include "chrome/common/extensions/extension.h"
|
| #include "chrome/common/extensions/extension_action.h"
|
| @@ -60,7 +60,7 @@ IN_PROC_BROWSER_TEST_F(KeybindingApiTest, Basic) {
|
| browser(), ui::VKEY_F, true, true, false, false));
|
|
|
| // Verify the command worked.
|
| - WebContents* tab = browser()->GetSelectedWebContents();
|
| + WebContents* tab = browser()->GetActiveWebContents();
|
| bool result = false;
|
| ASSERT_TRUE(ui_test_utils::ExecuteJavaScriptAndExtractBool(
|
| tab->GetRenderViewHost(), L"",
|
| @@ -101,7 +101,7 @@ IN_PROC_BROWSER_TEST_F(KeybindingApiTest, PageAction) {
|
|
|
| // Make sure it appears and is the right one.
|
| ASSERT_TRUE(WaitForPageActionVisibilityChangeTo(1));
|
| - int tab_id = browser()->GetSelectedTabContentsWrapper()->
|
| + int tab_id = browser()->GetActiveTabContents()->
|
| restore_tab_helper()->session_id().id();
|
| ExtensionAction* action = extension->page_action();
|
| ASSERT_TRUE(action);
|
| @@ -112,7 +112,7 @@ IN_PROC_BROWSER_TEST_F(KeybindingApiTest, PageAction) {
|
| browser(), ui::VKEY_F, true, true, false, false));
|
|
|
| // Verify the command worked (the page action turns the page red).
|
| - WebContents* tab = browser()->GetSelectedWebContents();
|
| + WebContents* tab = browser()->GetActiveWebContents();
|
| bool result = false;
|
| ASSERT_TRUE(ui_test_utils::ExecuteJavaScriptAndExtractBool(
|
| tab->GetRenderViewHost(), L"",
|
|
|