Commit e1381de3 authored by clamy's avatar clamy Committed by Commit Bot

Remove usage of GetActiveEntry [5/n]

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

Bug: 273710
Change-Id: I68a14673811f5e2854828ec8aaa218e86f9bef87
Reviewed-on: https://chromium-review.googlesource.com/1102461Reviewed-by: default avatarScott Violet <sky@chromium.org>
Commit-Queue: Camille Lamy <clamy@chromium.org>
Cr-Commit-Position: refs/heads/master@{#567680}
parent 4b6510dc
......@@ -79,7 +79,7 @@ TEST_F(HistoryTabHelperTest, ShouldUpdateTitleInHistory) {
web_contents_tester()->NavigateAndCommit(page_url_);
content::NavigationEntry* entry =
web_contents()->GetController().GetActiveEntry();
web_contents()->GetController().GetLastCommittedEntry();
ASSERT_NE(nullptr, entry);
ASSERT_TRUE(web_contents()->IsLoading());
......@@ -91,7 +91,7 @@ TEST_F(HistoryTabHelperTest, ShouldLimitTitleUpdatesPerPage) {
web_contents_tester()->NavigateAndCommit(page_url_);
content::NavigationEntry* entry =
web_contents()->GetController().GetActiveEntry();
web_contents()->GetController().GetLastCommittedEntry();
ASSERT_NE(nullptr, entry);
ASSERT_TRUE(web_contents()->IsLoading());
......
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