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

Unified Diff: chrome_frame/plugin_url_request.cc

Issue 10878082: net: Move file operation code from UploadData to UploadDataStream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: _ Created 8 years, 4 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: chrome_frame/plugin_url_request.cc
diff --git a/chrome_frame/plugin_url_request.cc b/chrome_frame/plugin_url_request.cc
index a8a14c7d3df92eedec7c0ef7250beb0ab8f8eb30..14ff4e486b56f99bbde05dc40074d001e81f2564 100644
--- a/chrome_frame/plugin_url_request.cc
+++ b/chrome_frame/plugin_url_request.cc
@@ -43,7 +43,9 @@ bool PluginUrlRequest::Initialize(PluginUrlRequestDelegate* delegate,
if (FAILED(hr)) {
NOTREACHED();
} else {
- post_data_len_ = upload_data->GetContentLengthSync();
+ STATSTG stat;
+ upload_stream->Stat(&stat, STATFLAG_NONAME);
+ post_data_len_ = stat.cbSize.QuadPart;
upload_stream->AddRef();
upload_stream->Initialize(upload_data);
upload_data_.Attach(upload_stream);
« no previous file with comments | « no previous file | chrome_frame/urlmon_upload_data_stream.cc » ('j') | webkit/tools/test_shell/simple_resource_loader_bridge.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698