Index: ppapi/proxy/flash_device_id_resource.cc |
diff --git a/ppapi/proxy/flash_device_id_resource.cc b/ppapi/proxy/flash_device_id_resource.cc |
index 39ff63bb7c35215d2280e0f591b2c2d6b7c34049..1698b499de1a9d89659a62fe7a48ca571d42f6d1 100644 |
--- a/ppapi/proxy/flash_device_id_resource.cc |
+++ b/ppapi/proxy/flash_device_id_resource.cc |
@@ -4,6 +4,7 @@ |
#include "ppapi/proxy/flash_device_id_resource.h" |
+#include "base/bind.h" |
#include "ppapi/c/pp_errors.h" |
#include "ppapi/proxy/dispatch_reply_message.h" |
#include "ppapi/proxy/ppapi_messages.h" |
@@ -38,20 +39,12 @@ int32_t FlashDeviceIDResource::GetDeviceID( |
dest_ = id; |
callback_ = callback; |
- CallBrowser(PpapiHostMsg_FlashDeviceID_GetDeviceID()); |
+ CallBrowser<PpapiPluginMsg_FlashDeviceID_GetDeviceIDReply>( |
+ PpapiHostMsg_FlashDeviceID_GetDeviceID(), |
+ base::Bind(&FlashDeviceIDResource::OnPluginMsgGetDeviceIDReply, this)); |
return PP_OK_COMPLETIONPENDING; |
} |
-void FlashDeviceIDResource::OnReplyReceived( |
- const ResourceMessageReplyParams& params, |
- const IPC::Message& msg) { |
- IPC_BEGIN_MESSAGE_MAP(FlashDeviceIDResource, msg) |
- PPAPI_DISPATCH_RESOURCE_REPLY( |
- PpapiPluginMsg_FlashDeviceID_GetDeviceIDReply, |
- OnPluginMsgGetDeviceIDReply) |
- IPC_END_MESSAGE_MAP() |
-} |
- |
void FlashDeviceIDResource::OnPluginMsgGetDeviceIDReply( |
const ResourceMessageReplyParams& params, |
const std::string& id) { |