Chromium Code Reviews| Index: webkit/plugins/ppapi/ppb_url_request_info_impl.cc |
| diff --git a/webkit/plugins/ppapi/ppb_url_request_info_impl.cc b/webkit/plugins/ppapi/ppb_url_request_info_impl.cc |
| index d2c5ef7eb8eb9716c99f90a7ccd1b6f97b5ed21d..b8c47e9045e23ec4aa54b6fd82809e5c9f350f0e 100644 |
| --- a/webkit/plugins/ppapi/ppb_url_request_info_impl.cc |
| +++ b/webkit/plugins/ppapi/ppb_url_request_info_impl.cc |
| @@ -127,14 +127,15 @@ PP_Bool SetProperty(PP_Resource request_id, |
| } |
| PP_Bool AppendDataToBody(PP_Resource request_id, |
| - const char* data, |
| + const void* data, |
| uint32_t len) { |
| scoped_refptr<PPB_URLRequestInfo_Impl> request( |
| Resource::GetAs<PPB_URLRequestInfo_Impl>(request_id)); |
| if (!request) |
| return PP_FALSE; |
| - return BoolToPPBool(request->AppendDataToBody(std::string(data, len))); |
| + return BoolToPPBool(request->AppendDataToBody(std::string( |
| + reinterpret_cast<const char*>(data), len))); |
|
piman
2011/03/24 03:41:36
static_cast
neb
2011/03/25 21:27:10
Done.
|
| } |
| PP_Bool AppendFileToBody(PP_Resource request_id, |