Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1472)

Unified Diff: ppapi/proxy/gamepad_resource.cc

Issue 11106019: PluginResource: Avoid having two sets of similar methods for talking with browser and renderer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/proxy/flash_resource.cc ('k') | ppapi/proxy/plugin_resource.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/gamepad_resource.cc
diff --git a/ppapi/proxy/gamepad_resource.cc b/ppapi/proxy/gamepad_resource.cc
index fa028e4e02c9246b967e77dfa8e7ab31635f0ad4..3055513c5c052405193087854d61e7dc47980d85 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));
}
« no previous file with comments | « ppapi/proxy/flash_resource.cc ('k') | ppapi/proxy/plugin_resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698