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

Unified Diff: ppapi/thunk/ppb_pdf_thunk.cc

Issue 1329213002: PDF: Use chrome.resourcesPrivate instead of Pepper to display translated strings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@i18n_api
Patch Set: Remove test cases Created 5 years, 3 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/thunk/ppb_pdf_api.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/thunk/ppb_pdf_thunk.cc
diff --git a/ppapi/thunk/ppb_pdf_thunk.cc b/ppapi/thunk/ppb_pdf_thunk.cc
index 05c397ce8f9f708bdb51ab2b7c1a60c7424a351a..8c447840018c116353476c07e734c0963b8ded5b 100644
--- a/ppapi/thunk/ppb_pdf_thunk.cc
+++ b/ppapi/thunk/ppb_pdf_thunk.cc
@@ -16,13 +16,6 @@ namespace thunk {
namespace {
-PP_Var GetLocalizedString(PP_Instance instance, PP_ResourceString string_id) {
- EnterInstanceAPI<PPB_PDF_API> enter(instance);
- if (enter.failed())
- return PP_MakeUndefined();
- return enter.functions()->GetLocalizedString(string_id);
-}
-
PP_Resource GetFontFileWithFallback(
PP_Instance instance,
const PP_BrowserFont_Trusted_Description* description,
@@ -137,7 +130,6 @@ void GetV8ExternalSnapshotData(PP_Instance instance,
}
const PPB_PDF g_ppb_pdf_thunk = {
- &GetLocalizedString,
&GetFontFileWithFallback,
&GetFontTableForPrivateFontFile,
&SearchString,
« no previous file with comments | « ppapi/thunk/ppb_pdf_api.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698