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

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

Issue 2030473002: ABANDONED CL: Using ResourceRequestBody as the type of browser_initiated_post_data. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@make-resource-request-body-public
Patch Set: Rebasing... 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
Index: content/browser/frame_host/navigation_controller_android.cc
diff --git a/content/browser/frame_host/navigation_controller_android.cc b/content/browser/frame_host/navigation_controller_android.cc
index 840771550f493682f02002173b6392b3187a9e8a..096ba627a5d3867abe73ec59ee5324e003c9ef63 100644
--- a/content/browser/frame_host/navigation_controller_android.cc
+++ b/content/browser/frame_host/navigation_controller_android.cc
@@ -227,10 +227,13 @@ void NavigationControllerAndroid::LoadUrl(
params.extra_headers = ConvertJavaStringToUTF8(env, extra_headers);
if (post_data) {
+ LOG(ERROR) << "LUKASZA!";
+ CHECK(false);
std::vector<uint8_t> http_body_vector;
base::android::JavaByteArrayToByteVector(env, post_data, &http_body_vector);
- params.browser_initiated_post_data =
- base::RefCountedBytes::TakeVector(&http_body_vector);
+ params.post_data = ResourceRequestBody::CreateFromBytes(
+ reinterpret_cast<const char*>(http_body_vector.data()),
+ http_body_vector.size());
}
if (base_url_for_data_url) {

Powered by Google App Engine
This is Rietveld 408576698