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

Unified Diff: content/browser/web_contents/navigation_controller_impl.cc

Issue 9999010: Store original request URL in NavigationEntry (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebasing Created 8 years, 8 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 | « chrome/browser/sessions/session_types.cc ('k') | content/browser/web_contents/navigation_entry_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/web_contents/navigation_controller_impl.cc
diff --git a/content/browser/web_contents/navigation_controller_impl.cc b/content/browser/web_contents/navigation_controller_impl.cc
index 486d29b775a2c2542ea66660d9199cdb0bcdbb27..b24eb5b1390c3071230174dcd27948bd9c4f3d93 100644
--- a/content/browser/web_contents/navigation_controller_impl.cc
+++ b/content/browser/web_contents/navigation_controller_impl.cc
@@ -869,6 +869,11 @@ void NavigationControllerImpl::RendererDidNavigateToNewPage(
new_entry->SetHasPostData(params.is_post);
new_entry->SetPostID(params.post_id);
+ if (params.redirects.size() > 0)
+ new_entry->SetOriginalRequestURL(params.redirects[0]);
+ else
+ new_entry->SetOriginalRequestURL(params.url);
+
InsertOrReplaceEntry(new_entry, *did_replace_entry);
}
« no previous file with comments | « chrome/browser/sessions/session_types.cc ('k') | content/browser/web_contents/navigation_entry_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698