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

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: Adding unit test & removing public function Created 8 years, 6 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 d985605c1f10837ae5dc942b706120ab7ee4964c..c1071c6e55ddffff34e5f37b1d26ffe2082ef313 100644
--- a/content/browser/web_contents/navigation_controller_impl.cc
+++ b/content/browser/web_contents/navigation_controller_impl.cc
@@ -242,6 +242,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) {
@@ -889,13 +892,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