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

Unified Diff: content/shell/browser/shell.cc

Issue 2038233002: Using ResourceRequestBody as the type of HTTP body outside of //content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@make-resource-request-body-public
Patch Set: Rebasing... Created 4 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
« no previous file with comments | « content/public/common/resource_request_body.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/browser/shell.cc
diff --git a/content/shell/browser/shell.cc b/content/shell/browser/shell.cc
index c6cf3527723445d821faaf5d7219d942f6f27210..ecb85f67dad9fe681e41e41d97172bf10bd265c3 100644
--- a/content/shell/browser/shell.cc
+++ b/content/shell/browser/shell.cc
@@ -325,12 +325,9 @@ WebContents* Shell::OpenURLFromTab(WebContents* source,
load_url_params.should_replace_current_entry =
params.should_replace_current_entry;
- // Only allows the browser-initiated navigation to use POST.
- if (params.uses_post && !params.is_renderer_initiated) {
- load_url_params.load_type =
- NavigationController::LOAD_TYPE_BROWSER_INITIATED_HTTP_POST;
- load_url_params.browser_initiated_post_data =
- params.browser_initiated_post_data;
+ if (params.uses_post) {
+ load_url_params.load_type = NavigationController::LOAD_TYPE_HTTP_POST;
+ load_url_params.post_data = params.post_data;
}
source->GetController().LoadURLWithParams(load_url_params);
« no previous file with comments | « content/public/common/resource_request_body.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698