Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2992)

Unified Diff: android_webview/browser/renderer_host/aw_render_view_host_ext.cc

Issue 2685553004: Convert AwRenderViewHostExt to use the new navigation callbacks. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « android_webview/browser/renderer_host/aw_render_view_host_ext.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/browser/renderer_host/aw_render_view_host_ext.cc
diff --git a/android_webview/browser/renderer_host/aw_render_view_host_ext.cc b/android_webview/browser/renderer_host/aw_render_view_host_ext.cc
index f2228807fa22adcdb53ac8b463c6e0dea281de48..9e475797cc0825df623509233f98becf66123e6b 100644
--- a/android_webview/browser/renderer_host/aw_render_view_host_ext.cc
+++ b/android_webview/browser/renderer_host/aw_render_view_host_ext.cc
@@ -13,12 +13,12 @@
#include "base/logging.h"
#include "components/web_restrictions/browser/web_restrictions_mojo_implementation.h"
#include "content/public/browser/android/content_view_core.h"
+#include "content/public/browser/navigation_handle.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/render_process_host.h"
#include "content/public/browser/render_view_host.h"
#include "content/public/browser/user_metrics.h"
#include "content/public/browser/web_contents.h"
-#include "content/public/common/frame_navigate_params.h"
#include "services/service_manager/public/cpp/interface_registry.h"
namespace android_webview {
@@ -152,14 +152,12 @@ void AwRenderViewHostExt::RenderFrameCreated(
AwBrowserContext::GetDefault()->GetWebRestrictionProvider()));
}
-void AwRenderViewHostExt::DidNavigateAnyFrame(
- content::RenderFrameHost* render_frame_host,
- const content::LoadCommittedDetails& details,
- const content::FrameNavigateParams& params) {
+void AwRenderViewHostExt::DidFinishNavigation(
+ content::NavigationHandle* navigation_handle) {
DCHECK(CalledOnValidThread());
AwBrowserContext::FromWebContents(web_contents())
- ->AddVisitedURLs(params.redirects);
+ ->AddVisitedURLs(navigation_handle->GetRedirectChain());
}
void AwRenderViewHostExt::OnPageScaleFactorChanged(float page_scale_factor) {
« no previous file with comments | « android_webview/browser/renderer_host/aw_render_view_host_ext.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698