From 47ae23376463a83ec03dd83fddd8aa20ee081d09 Mon Sep 17 00:00:00 2001 From: "avi@chromium.org" Date: Tue, 29 Jan 2013 01:50:48 +0000 Subject: Remove TabStripModel wrapper use. BUG=167548 TEST=no functional change Review URL: https://chromiumcodereview.appspot.com/12066003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@179254 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/chrome_main_browsertest.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'chrome/browser/chrome_main_browsertest.cc') diff --git a/chrome/browser/chrome_main_browsertest.cc b/chrome/browser/chrome_main_browsertest.cc index 0236d409..7869654 100644 --- a/chrome/browser/chrome_main_browsertest.cc +++ b/chrome/browser/chrome_main_browsertest.cc @@ -12,7 +12,7 @@ #include "chrome/browser/ui/browser_commands.h" #include "chrome/browser/ui/browser_finder.h" #include "chrome/browser/ui/browser_list.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_paths.h" #include "chrome/common/chrome_switches.h" @@ -57,7 +57,8 @@ IN_PROC_BROWSER_TEST_F(ChromeMainTest, ReuseBrowserInstanceWhenOpeningFile) { observer.Wait(); GURL url = net::FilePathToFileURL(test_file_path); - content::WebContents* tab = chrome::GetActiveWebContents(browser()); + content::WebContents* tab = + browser()->tab_strip_model()->GetActiveWebContents(); ASSERT_EQ(url, tab->GetController().GetActiveEntry()->GetVirtualURL()); } -- cgit v1.1