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

Remove usage of GetActiveEntry [1/n]

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

Bug: 273710
Change-Id: I179116d10ad8894ad0c88112cea519641dc240ae
Reviewed-on: https://chromium-review.googlesource.com/1102457
Commit-Queue: Dominic Mazzoni <dmazzoni@chromium.org>
Reviewed-by: default avatarDominic Mazzoni <dmazzoni@chromium.org>
Cr-Commit-Position: refs/heads/master@{#567649}
parent 1311dfa6
......@@ -65,11 +65,7 @@ IN_PROC_BROWSER_TEST_F(InterstitialAccessibilityBrowserTest,
// Ensure that we got an interstitial page.
ASSERT_FALSE(web_contents->IsCrashed());
content::NavigationEntry* entry =
web_contents->GetController().GetActiveEntry();
ASSERT_TRUE(entry);
EXPECT_TRUE(entry->GetPageType() == content::PAGE_TYPE_ERROR ||
entry->GetPageType() == content::PAGE_TYPE_INTERSTITIAL);
EXPECT_TRUE(web_contents->ShowingInterstitialPage());
// Now check from the perspective of accessibility - we should be focused
// on a page with title "Privacy error". Keep waiting on accessibility
......
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