diff options
author | yzshen@chromium.org <yzshen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-16 03:40:57 +0000 |
---|---|---|
committer | yzshen@chromium.org <yzshen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-16 03:40:57 +0000 |
commit | 9164da3d0c42047557da22bbf9952c35dd956d03 (patch) | |
tree | 9c0b8be62f277e36249ef930ba0b1ff74974c368 /ppapi/proxy/gamepad_resource.cc | |
parent | 0704cafcee4819cd7f7bcccc2803aef18dc949b6 (diff) | |
download | chromium_src-9164da3d0c42047557da22bbf9952c35dd956d03.zip chromium_src-9164da3d0c42047557da22bbf9952c35dd956d03.tar.gz chromium_src-9164da3d0c42047557da22bbf9952c35dd956d03.tar.bz2 |
PluginResource: Avoid having two sets of similar methods for talking with browser and renderer.
BUG=None
TEST=None
Review URL: https://chromiumcodereview.appspot.com/11106019
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162066 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/proxy/gamepad_resource.cc')
-rw-r--r-- | ppapi/proxy/gamepad_resource.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ppapi/proxy/gamepad_resource.cc b/ppapi/proxy/gamepad_resource.cc index fa028e4..3055513 100644 --- a/ppapi/proxy/gamepad_resource.cc +++ b/ppapi/proxy/gamepad_resource.cc @@ -48,8 +48,9 @@ GamepadResource::GamepadResource(Connection connection, PP_Instance instance) buffer_(NULL) { memset(&last_read_, 0, sizeof(last_read_)); - SendCreateToBrowser(PpapiHostMsg_Gamepad_Create()); - CallBrowser<PpapiPluginMsg_Gamepad_SendMemory>( + SendCreate(BROWSER, PpapiHostMsg_Gamepad_Create()); + Call<PpapiPluginMsg_Gamepad_SendMemory>( + BROWSER, PpapiHostMsg_Gamepad_RequestMemory(), base::Bind(&GamepadResource::OnPluginMsgSendMemory, this)); } |