Commit 935eeaef authored by clamy's avatar clamy Committed by Commit Bot

Remove usage of GetActiveEntry [3/n]

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

Bug: 273710
Change-Id: Iac1ba1e85dc4b7b523c40cb64d9e0280f540ca22
Reviewed-on: https://chromium-review.googlesource.com/1102459Reviewed-by: default avatarBen Wells <benwells@chromium.org>
Reviewed-by: default avatarCamille Lamy <clamy@chromium.org>
Commit-Queue: Camille Lamy <clamy@chromium.org>
Cr-Commit-Position: refs/heads/master@{#567962}
parent 523aa2a5
...@@ -34,7 +34,8 @@ class RegisterProtocolHandlerBrowserTest : public InProcessBrowserTest { ...@@ -34,7 +34,8 @@ class RegisterProtocolHandlerBrowserTest : public InProcessBrowserTest {
params.unfiltered_link_url = url; params.unfiltered_link_url = url;
WebContents* web_contents = WebContents* web_contents =
browser()->tab_strip_model()->GetActiveWebContents(); browser()->tab_strip_model()->GetActiveWebContents();
params.page_url = web_contents->GetController().GetActiveEntry()->GetURL(); params.page_url =
web_contents->GetController().GetLastCommittedEntry()->GetURL();
#if defined(OS_MACOSX) #if defined(OS_MACOSX)
params.writing_direction_default = 0; params.writing_direction_default = 0;
params.writing_direction_left_to_right = 0; params.writing_direction_left_to_right = 0;
......
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