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

Unified Diff: ppapi/proxy/ppb_file_io_proxy.cc

Issue 10828023: PPAPI/NaCl: Make NaClIPCAdapter transfer handles more generally (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ready for review? 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: ppapi/proxy/ppb_file_io_proxy.cc
diff --git a/ppapi/proxy/ppb_file_io_proxy.cc b/ppapi/proxy/ppb_file_io_proxy.cc
index 6858655a3ecf14e3ac88cf28fd178e2aa02bc08b..e08b926bab4567174e72a70ea58c3cf079919bad 100644
--- a/ppapi/proxy/ppb_file_io_proxy.cc
+++ b/ppapi/proxy/ppb_file_io_proxy.cc
@@ -328,7 +328,8 @@ void PPB_FileIO_Proxy::OnHostMsgWrite(const HostResource& host_resource,
&PPB_FileIO_Proxy::GeneralCallbackCompleteInHost,
host_resource);
if (enter.succeeded()) {
- enter.SetResult(enter.object()->Write(offset, data.data(), data.size(),
+ enter.SetResult(enter.object()->Write(offset, data.data(),
+ static_cast<int32_t>(data.size()),
enter.callback()));
}
}

Powered by Google App Engine
This is Rietveld 408576698