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

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

Issue 10704048: [RDS] Reloads a page using the original request URL (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase fix Created 8 years, 4 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
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);
}

Powered by Google App Engine
This is Rietveld 408576698