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

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

Issue 1678303004: PlzNavigate: inform the renderer that a navigation is a POST (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 10 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/frame_host/navigation_entry_impl.cc
diff --git a/content/browser/frame_host/navigation_entry_impl.cc b/content/browser/frame_host/navigation_entry_impl.cc
index 6b8e04a74d5ce976cbb64cb81c2754b7cb88d38b..4354088ad4b6f045c7d98b00bd83a2e77f5a22e4 100644
--- a/content/browser/frame_host/navigation_entry_impl.cc
+++ b/content/browser/frame_host/navigation_entry_impl.cc
@@ -584,7 +584,7 @@ CommonNavigationParams NavigationEntryImpl::ConstructCommonNavigationParams(
dest_url, dest_referrer, GetTransitionType(), navigation_type,
!IsViewSourceMode(), should_replace_entry(), ui_timestamp, report_type,
GetBaseURLForDataURL(), GetHistoryURLForDataURL(), lofi_state,
- navigation_start);
+ navigation_start, GetHasPostData() ? "POST" : "GET");
}
StartNavigationParams NavigationEntryImpl::ConstructStartNavigationParams()
@@ -597,8 +597,7 @@ StartNavigationParams NavigationEntryImpl::ConstructStartNavigationParams()
GetBrowserInitiatedPostData()->size());
}
- return StartNavigationParams(GetHasPostData(), extra_headers(),
- browser_initiated_post_data,
+ return StartNavigationParams(extra_headers(), browser_initiated_post_data,
#if defined(OS_ANDROID)
has_user_gesture(),
#endif
« no previous file with comments | « content/browser/browser_side_navigation_browsertest.cc ('k') | content/browser/frame_host/navigation_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698