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 557180f7158a0902b09976469c225d1723ca6f6c..881169f1b0c68626d33538c83b9222e56d0be34e 100644 |
--- a/content/browser/web_contents/navigation_controller_impl.cc |
+++ b/content/browser/web_contents/navigation_controller_impl.cc |
@@ -243,6 +243,9 @@ void NavigationControllerImpl::Reload(bool check_for_repost) { |
void NavigationControllerImpl::ReloadIgnoringCache(bool check_for_repost) { |
ReloadInternal(check_for_repost, RELOAD_IGNORING_CACHE); |
} |
+void NavigationControllerImpl::ReloadOriginalRequestURL(bool check_for_repost) { |
+ ReloadInternal(check_for_repost, RELOAD_ORIGINAL_REQUEST_URL); |
+} |
void NavigationControllerImpl::ReloadInternal(bool check_for_repost, |
ReloadType reload_type) { |
@@ -951,13 +954,9 @@ void NavigationControllerImpl::RendererDidNavigateToNewPage( |
static_cast<SiteInstanceImpl*>(web_contents_->GetSiteInstance())); |
new_entry->SetHasPostData(params.is_post); |
new_entry->SetPostID(params.post_id); |
+ new_entry->SetOriginalRequestURL(params.original_request_url); |
new_entry->SetIsOverridingUserAgent(params.is_overriding_user_agent); |
- if (params.redirects.size() > 0) |
- new_entry->SetOriginalRequestURL(params.redirects[0]); |
- else |
- new_entry->SetOriginalRequestURL(params.url); |
- |
InsertOrReplaceEntry(new_entry, *did_replace_entry); |
} |