Commit 6fb1030c authored by clamy's avatar clamy Committed by Commit Bot

Remove usage of GetActiveEntry [2/n]

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

Bug: 273710
Change-Id: I3c2aefded05884333fd3e20830cf4abfabebbdc1
Reviewed-on: https://chromium-review.googlesource.com/1102458Reviewed-by: default avatarNico Weber <thakis@chromium.org>
Commit-Queue: Camille Lamy <clamy@chromium.org>
Cr-Commit-Position: refs/heads/master@{#568816}
parent d9fda94c
...@@ -55,7 +55,7 @@ IN_PROC_BROWSER_TEST_F(ChromeMainTest, ReuseBrowserInstanceWhenOpeningFile) { ...@@ -55,7 +55,7 @@ IN_PROC_BROWSER_TEST_F(ChromeMainTest, ReuseBrowserInstanceWhenOpeningFile) {
GURL url = net::FilePathToFileURL(test_file_path); GURL url = net::FilePathToFileURL(test_file_path);
content::WebContents* tab = content::WebContents* tab =
browser()->tab_strip_model()->GetActiveWebContents(); browser()->tab_strip_model()->GetActiveWebContents();
ASSERT_EQ(url, tab->GetController().GetActiveEntry()->GetVirtualURL()); ASSERT_EQ(url, tab->GetVisibleURL());
} }
// ChromeMainTest.SecondLaunchWithIncognitoUrl is flaky on Win and Linux. // ChromeMainTest.SecondLaunchWithIncognitoUrl is flaky on Win and Linux.
......
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