Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1070)

Unified Diff: chrome/browser/extensions/extension_keybinding_apitest.cc

Issue 10535077: TabContentsWrapper -> TabContents, part 12. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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"",

Powered by Google App Engine
This is Rietveld 408576698