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

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

Issue 306033002: Update post state on navigation within page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix test in debug Created 6 years, 7 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 | « no previous file | content/browser/frame_host/navigation_controller_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/frame_host/navigation_controller_impl.cc
diff --git a/content/browser/frame_host/navigation_controller_impl.cc b/content/browser/frame_host/navigation_controller_impl.cc
index 54691513c4e6440fbb327cd921af88d3d5f09d5f..87757126d42a80f2aa1deaeb6010ad340ba1e3b6 100644
--- a/content/browser/frame_host/navigation_controller_impl.cc
+++ b/content/browser/frame_host/navigation_controller_impl.cc
@@ -1168,6 +1168,9 @@ void NavigationControllerImpl::RendererDidNavigateInPage(
if (existing_entry->update_virtual_url_with_url())
UpdateVirtualURLToURL(existing_entry, params.url);
+ existing_entry->SetHasPostData(params.is_post);
+ existing_entry->SetPostID(params.post_id);
+
// This replaces the existing entry since the page ID didn't change.
*did_replace_entry = true;
« no previous file with comments | « no previous file | content/browser/frame_host/navigation_controller_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698