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

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

Issue 2012913002: Deduping conversions between ResourceRequestBody/WebHTTPBody/ExplodedHttpBody. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@get-rid-of-exploded-http-body
Patch Set: Calling ResourceRequestBody::AppendFileRange with optional_body_file_path. Created 4 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/child/web_url_request_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/frame_host/frame_navigation_entry.cc
diff --git a/content/browser/frame_host/frame_navigation_entry.cc b/content/browser/frame_host/frame_navigation_entry.cc
index 3aada24b87a796293224c8901146babb14028d3c..b23b732c332a9994462bc59a854d79263c485158 100644
--- a/content/browser/frame_host/frame_navigation_entry.cc
+++ b/content/browser/frame_host/frame_navigation_entry.cc
@@ -93,11 +93,7 @@ scoped_refptr<ResourceRequestBody> FrameNavigationEntry::GetPostData() const {
if (!DecodePageState(page_state_.ToEncodedData(), &exploded_state))
return nullptr;
- scoped_refptr<ResourceRequestBody> body = new ResourceRequestBody();
- if (!GeneratePostData(exploded_state.top.http_body, body.get()))
- return nullptr;
-
- return body;
+ return exploded_state.top.http_body.request_body;
}
} // namespace content
« no previous file with comments | « no previous file | content/child/web_url_request_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698