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

Unified Diff: chrome/browser/extensions/api/webstore_private/webstore_private_apitest.cc

Issue 12066003: Remove TabStripModel wrapper use. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: gtk Created 7 years, 11 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/api/webstore_private/webstore_private_apitest.cc
diff --git a/chrome/browser/extensions/api/webstore_private/webstore_private_apitest.cc b/chrome/browser/extensions/api/webstore_private/webstore_private_apitest.cc
index 2c23eef70edeab415e18443fc123b6e38e9b1e80..c60af7f08799c943406ec419cef2a984196b09ba 100644
--- a/chrome/browser/extensions/api/webstore_private/webstore_private_apitest.cc
+++ b/chrome/browser/extensions/api/webstore_private/webstore_private_apitest.cc
@@ -18,7 +18,7 @@
#include "chrome/browser/extensions/webstore_installer.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
-#include "chrome/browser/ui/browser_tabstrip.h"
+#include "chrome/browser/ui/tabs/tab_strip_model.h"
#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/test/base/test_launcher_utils.h"
@@ -255,7 +255,8 @@ class ExtensionWebstoreGetWebGLStatusTest : public InProcessBrowserTest {
// Test cases for webstore origin frame blocking.
IN_PROC_BROWSER_TEST_F(ExtensionWebstorePrivateApiTest,
FrameWebstorePageBlocked) {
- content::WebContents* contents = chrome::GetActiveWebContents(browser());
+ content::WebContents* contents =
+ browser()->tab_strip_model()->GetActiveWebContents();
string16 expected_title = UTF8ToUTF16("PASS: about:blank");
string16 failure_title = UTF8ToUTF16("FAIL");
content::TitleWatcher watcher(contents, expected_title);
@@ -269,7 +270,8 @@ IN_PROC_BROWSER_TEST_F(ExtensionWebstorePrivateApiTest,
IN_PROC_BROWSER_TEST_F(ExtensionWebstorePrivateApiTest,
FrameErrorPageBlocked) {
- content::WebContents* contents = chrome::GetActiveWebContents(browser());
+ content::WebContents* contents =
+ browser()->tab_strip_model()->GetActiveWebContents();
string16 expected_title = UTF8ToUTF16("PASS: about:blank");
string16 failure_title = UTF8ToUTF16("FAIL");
content::TitleWatcher watcher(contents, expected_title);

Powered by Google App Engine
This is Rietveld 408576698