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

Unified Diff: content/renderer/render_frame_impl.cc

Issue 2657323003: Convert HistoryTabHelper to use the new navigation callbacks. (Closed)
Patch Set: nit 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 | « content/public/browser/navigation_handle.cc ('k') | content/renderer/render_view_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_frame_impl.cc
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
index e7d049c0d22cfd26f8f3ce455df2af10182aee9a..6ef3d8cd2431806910970514899caee721b6229a 100644
--- a/content/renderer/render_frame_impl.cc
+++ b/content/renderer/render_frame_impl.cc
@@ -3471,8 +3471,11 @@ void RenderFrameImpl::didStartProvisionalLoad(blink::WebLocalFrame* frame) {
for (auto& observer : observers_)
observer.DidStartProvisionalLoad();
+ std::vector<GURL> redirect_chain;
+ GetRedirectChain(ds, &redirect_chain);
+ CHECK(!redirect_chain.empty());
Send(new FrameHostMsg_DidStartProvisionalLoad(
- routing_id_, ds->getRequest().url(), navigation_start));
+ routing_id_, ds->getRequest().url(), redirect_chain, navigation_start));
}
void RenderFrameImpl::didReceiveServerRedirectForProvisionalLoad(
@@ -6246,6 +6249,9 @@ void RenderFrameImpl::BeginNavigation(const NavigationPolicyInfo& info) {
web_searchable_form_data.encoding().utf8();
}
+ if (info.isClientRedirect)
+ begin_navigation_params.client_side_redirect_url = frame_->document().url();
+
Send(new FrameHostMsg_BeginNavigation(
routing_id_, MakeCommonNavigationParams(info), begin_navigation_params));
}
« no previous file with comments | « content/public/browser/navigation_handle.cc ('k') | content/renderer/render_view_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698