Index: chrome/browser/referrer_policy_browsertest.cc |
diff --git a/chrome/browser/referrer_policy_browsertest.cc b/chrome/browser/referrer_policy_browsertest.cc |
index 05a349218acb34849adce8795944f937a6aa6cc5..ff7f441789b3e1a3b6fbcfface612ce59e5aba18 100644 |
--- a/chrome/browser/referrer_policy_browsertest.cc |
+++ b/chrome/browser/referrer_policy_browsertest.cc |
@@ -10,7 +10,7 @@ |
#include "chrome/browser/tab_contents/render_view_context_menu_browsertest_util.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/tabs/tab_strip_model.h" |
#include "chrome/common/chrome_notification_types.h" |
#include "chrome/test/base/in_process_browser_test.h" |
#include "chrome/test/base/ui_test_utils.h" |
@@ -139,7 +139,8 @@ class ReferrerPolicyTest : public InProcessBrowserTest { |
content::NotificationService::AllSources()); |
string16 expected_title = GetExpectedTitle(start_url, expected_referrer); |
- content::WebContents* tab = chrome::GetActiveWebContents(browser()); |
+ content::WebContents* tab = |
+ browser()->tab_strip_model()->GetActiveWebContents(); |
content::TitleWatcher title_watcher(tab, expected_title); |
// Watch for all possible outcomes to avoid timeouts if something breaks. |
@@ -379,7 +380,8 @@ IN_PROC_BROWSER_TEST_F(ReferrerPolicyTest, History) { |
string16 expected_title = |
GetExpectedTitle(start_url, EXPECT_ORIGIN_AS_REFERRER); |
- content::WebContents* tab = chrome::GetActiveWebContents(browser()); |
+ content::WebContents* tab = |
+ browser()->tab_strip_model()->GetActiveWebContents(); |
scoped_ptr<content::TitleWatcher> title_watcher( |
new content::TitleWatcher(tab, expected_title)); |