Index: src/shared/ppapi_proxy/plugin_image_data.cc |
diff --git a/src/shared/ppapi_proxy/plugin_image_data.cc b/src/shared/ppapi_proxy/plugin_image_data.cc |
index 9d37c8d37e2de600863cf09b1b1961932d33fa42..c9553cf2debe27d7eeb62f1be262e33eceb1e1a5 100644 |
--- a/src/shared/ppapi_proxy/plugin_image_data.cc |
+++ b/src/shared/ppapi_proxy/plugin_image_data.cc |
@@ -71,17 +71,8 @@ PP_Resource Create(PP_Module module, |
} |
PP_Bool IsImageData(PP_Resource resource) { |
- int32_t result; |
- NaClSrpcError retval = |
- PpbImageDataRpcClient::PPB_ImageData_IsImageData( |
- GetMainSrpcChannel(), |
- static_cast<int64_t>(resource), |
- &result); |
- if (retval == NACL_SRPC_RESULT_OK) { |
- return (result ? PP_TRUE : PP_FALSE); |
- } else { |
- return PP_FALSE; |
- } |
+ return PluginResource::GetAs<PluginImageData>(resource).get() |
+ ? PP_TRUE : PP_FALSE; |
} |
PP_Bool Describe(PP_Resource resource, |