diff options
Diffstat (limited to 'content/browser/web_contents/navigation_controller_impl.cc')
-rw-r--r-- | content/browser/web_contents/navigation_controller_impl.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/content/browser/web_contents/navigation_controller_impl.cc b/content/browser/web_contents/navigation_controller_impl.cc index 557180f..881169f 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); } |