summaryrefslogtreecommitdiffstats
path: root/ppapi/proxy/handle_converter.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ppapi/proxy/handle_converter.cc')
-rw-r--r--ppapi/proxy/handle_converter.cc8
1 files changed, 2 insertions, 6 deletions
diff --git a/ppapi/proxy/handle_converter.cc b/ppapi/proxy/handle_converter.cc
index b77ee49..d2fc4a9 100644
--- a/ppapi/proxy/handle_converter.cc
+++ b/ppapi/proxy/handle_converter.cc
@@ -54,18 +54,14 @@ void ConvertHandlesInParam(const ppapi::proxy::SerializedVar& var,
Handles* handles,
IPC::Message* msg,
int* handle_index) {
- if (!var.raw_var_data())
- return;
-
- std::vector<ppapi::proxy::SerializedHandle*> var_handles =
- var.raw_var_data()->GetHandles();
+ std::vector<ppapi::proxy::SerializedHandle*> var_handles = var.GetHandles();
if (var_handles.empty())
return;
for (size_t i = 0; i < var_handles.size(); ++i)
handles->push_back(*var_handles[i]);
if (msg)
- var.raw_var_data()->Write(msg, base::Bind(&HandleWriter, handle_index));
+ var.WriteDataToMessage(msg, base::Bind(&HandleWriter, handle_index));
}
// For PpapiMsg_ResourceReply and the reply to PpapiHostMsg_ResourceSyncCall,