diff options
author | yzshen@chromium.org <yzshen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-13 10:16:08 +0000 |
---|---|---|
committer | yzshen@chromium.org <yzshen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-13 10:16:08 +0000 |
commit | 587869384ed4cf74d88974558500505f966adef0 (patch) | |
tree | 24413674058af424f3b944724f013833cdcc9910 /ppapi/proxy/flash_font_file_resource.cc | |
parent | 4a359b11c7419835221c627705f8e72274b20058 (diff) | |
download | chromium_src-587869384ed4cf74d88974558500505f966adef0.zip chromium_src-587869384ed4cf74d88974558500505f966adef0.tar.gz chromium_src-587869384ed4cf74d88974558500505f966adef0.tar.bz2 |
Add template SyncCall() to PluginResource.
BUG=None
TEST=None
Review URL: https://chromiumcodereview.appspot.com/11028104
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161749 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/proxy/flash_font_file_resource.cc')
-rw-r--r-- | ppapi/proxy/flash_font_file_resource.cc | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/ppapi/proxy/flash_font_file_resource.cc b/ppapi/proxy/flash_font_file_resource.cc index ecb8bc2..9dec65e 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, ¶m)) - 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. |