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

Unified Diff: ppapi/native_client/src/trusted/plugin/file_downloader.cc

Issue 10532147: Additional fixes for warning mismatch with scons. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 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 | « no previous file | ppapi/native_client/src/trusted/plugin/nacl_subprocess.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/native_client/src/trusted/plugin/file_downloader.cc
===================================================================
--- ppapi/native_client/src/trusted/plugin/file_downloader.cc (revision 142166)
+++ ppapi/native_client/src/trusted/plugin/file_downloader.cc (working copy)
@@ -301,8 +301,10 @@
// Finish streaming the body asynchronously providing a callback.
pp::CompletionCallback onread_callback =
callback_factory_.NewOptionalCallback(&FileDownloader::URLReadBodyNotify);
+
+ int32_t temp_size = static_cast<int32_t>(temp_buffer_.size());
pp_error = url_loader_.ReadResponseBody(&temp_buffer_[0],
- temp_buffer_.size(),
+ temp_size,
onread_callback);
bool async_notify_ok = (pp_error == PP_OK_COMPLETIONPENDING);
PLUGIN_PRINTF(("FileDownloader::URLBufferStartNotify (async_notify_ok=%d)\n",
@@ -335,8 +337,9 @@
pp::CompletionCallback onread_callback =
callback_factory_.NewOptionalCallback(
&FileDownloader::URLReadBodyNotify);
+ int32_t temp_size = static_cast<int32_t>(temp_buffer_.size());
pp_error = url_loader_.ReadResponseBody(&temp_buffer_[0],
- temp_buffer_.size(),
+ temp_size,
onread_callback);
bool async_notify_ok = (pp_error == PP_OK_COMPLETIONPENDING);
if (!async_notify_ok) {
« no previous file with comments | « no previous file | ppapi/native_client/src/trusted/plugin/nacl_subprocess.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698