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

Unified Diff: ppapi/proxy/flash_font_file_resource.cc

Issue 11028104: Add template SyncCall() to PluginResource. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync & resolve 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/ppapi_proxy.gypi ('k') | ppapi/proxy/flash_resource.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/flash_font_file_resource.cc
diff --git a/ppapi/proxy/flash_font_file_resource.cc b/ppapi/proxy/flash_font_file_resource.cc
index ecb8bc2ee4deb2f6372bfd9c3f3fc129cc6b14b7..9dec65e7c899df645709e4e3fad35e770a5454f6 100644
--- a/ppapi/proxy/flash_font_file_resource.cc
+++ b/ppapi/proxy/flash_font_file_resource.cc
@@ -44,17 +44,14 @@ PP_Bool FlashFontFileResource::GetFontTable(uint32_t table,
std::string* contents = GetFontTable(table);
if (!contents) {
- IPC::Message reply;
- int32_t result = CallRendererSync(
- PpapiHostMsg_FlashFontFile_GetFontTable(table), &reply);
+ std::string out_contents;
+ int32_t result = SyncCall<PpapiPluginMsg_FlashFontFile_GetFontTableReply>(
+ RENDERER, PpapiHostMsg_FlashFontFile_GetFontTable(table),
+ &out_contents);
if (result != PP_OK)
return PP_FALSE;
- PpapiPluginMsg_FlashFontFile_GetFontTableReply::Param param;
- if (!PpapiPluginMsg_FlashFontFile_GetFontTableReply::Read(&reply, &param))
- return PP_FALSE;
-
- contents = AddFontTable(table, param.a);
+ contents = AddFontTable(table, out_contents);
}
// If we are going to copy the data into |output|, it must be big enough.
« no previous file with comments | « ppapi/ppapi_proxy.gypi ('k') | ppapi/proxy/flash_resource.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698