Commit 4895523f authored by clamy's avatar clamy Committed by Commit Bot

Remove usage of GetActiveEntry [6/n]

This CL is part of a serie of CLs to remove usage of the deprecated
method NavigationController::GetActiveEntry.

Bug: 273710
Change-Id: Id54366b63dbca52290f754e52267906e566f60f3
Reviewed-on: https://chromium-review.googlesource.com/1102465Reviewed-by: default avatarNico Weber <thakis@chromium.org>
Commit-Queue: Camille Lamy <clamy@chromium.org>
Cr-Commit-Position: refs/heads/master@{#567633}
parent 5f6bbe88
...@@ -218,7 +218,7 @@ class ReferrerPolicyTest : public InProcessBrowserTest { ...@@ -218,7 +218,7 @@ class ReferrerPolicyTest : public InProcessBrowserTest {
} }
EXPECT_EQ(expected_referrer_policy, EXPECT_EQ(expected_referrer_policy,
tab->GetController().GetActiveEntry()->GetReferrer().policy); tab->GetController().GetVisibleEntry()->GetReferrer().policy);
return start_url; return start_url;
} }
...@@ -534,7 +534,7 @@ IN_PROC_BROWSER_TEST_F(ReferrerPolicyTest, RequestTabletSite) { ...@@ -534,7 +534,7 @@ IN_PROC_BROWSER_TEST_F(ReferrerPolicyTest, RequestTabletSite) {
// is complete, so the title change is missed because the title is checked on // is complete, so the title change is missed because the title is checked on
// load. Clearing the title ensures that TitleWatcher will wait for the actual // load. Clearing the title ensures that TitleWatcher will wait for the actual
// title setting. // title setting.
tab->GetController().GetActiveEntry()->SetTitle(base::string16()); tab->GetController().GetVisibleEntry()->SetTitle(base::string16());
// Request tablet version. // Request tablet version.
chrome::ToggleRequestTabletSite(browser()); chrome::ToggleRequestTabletSite(browser());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment