Index: components/pdf/renderer/pepper_pdf_host.cc |
diff --git a/components/pdf/renderer/pepper_pdf_host.cc b/components/pdf/renderer/pepper_pdf_host.cc |
index 5714d26acbbd3b3e81d45f724940be4673ebd098..eea157f86cd1fce64b917985a12804be899a3eb2 100644 |
--- a/components/pdf/renderer/pepper_pdf_host.cc |
+++ b/components/pdf/renderer/pepper_pdf_host.cc |
@@ -5,7 +5,6 @@ |
#include "components/pdf/renderer/pepper_pdf_host.h" |
#include "components/pdf/common/pdf_messages.h" |
-#include "components/strings/grit/components_strings.h" |
#include "content/public/common/referrer.h" |
#include "content/public/renderer/pepper_plugin_instance.h" |
#include "content/public/renderer/render_thread.h" |
@@ -26,10 +25,6 @@ |
#include "third_party/WebKit/public/web/WebLocalFrame.h" |
#include "third_party/WebKit/public/web/WebPluginContainer.h" |
#include "third_party/WebKit/public/web/WebView.h" |
-#include "ui/base/l10n/l10n_util.h" |
-#include "ui/base/layout.h" |
-#include "ui/base/resource/resource_bundle.h" |
-#include "ui/gfx/geometry/point.h" |
namespace pdf { |
@@ -40,26 +35,6 @@ namespace { |
base::LazyInstance<base::ThreadLocalPointer<PepperPDFHost::PrintClient>>::Leaky |
g_print_client_tls = LAZY_INSTANCE_INITIALIZER; |
-std::string GetStringResource(PP_ResourceString string_id) { |
- int resource_id = 0; |
- switch (string_id) { |
- case PP_RESOURCESTRING_PDFGETPASSWORD: |
- resource_id = IDS_PDF_NEED_PASSWORD; |
- break; |
- case PP_RESOURCESTRING_PDFLOADING: |
- resource_id = IDS_PDF_PAGE_LOADING; |
- break; |
- case PP_RESOURCESTRING_PDFLOAD_FAILED: |
- resource_id = IDS_PDF_PAGE_LOAD_FAILED; |
- break; |
- case PP_RESOURCESTRING_PDFPROGRESSLOADING: |
- resource_id = IDS_PDF_PROGRESS_LOADING; |
- break; |
- } |
- |
- return l10n_util::GetStringUTF8(resource_id); |
-} |
- |
} // namespace |
PepperPDFHost::PepperPDFHost(content::RendererPpapiHost* host, |
@@ -88,8 +63,6 @@ int32_t PepperPDFHost::OnResourceMessageReceived( |
const IPC::Message& msg, |
ppapi::host::HostMessageContext* context) { |
PPAPI_BEGIN_MESSAGE_MAP(PepperPDFHost, msg) |
- PPAPI_DISPATCH_HOST_RESOURCE_CALL(PpapiHostMsg_PDF_GetLocalizedString, |
- OnHostMsgGetLocalizedString) |
PPAPI_DISPATCH_HOST_RESOURCE_CALL_0(PpapiHostMsg_PDF_DidStartLoading, |
OnHostMsgDidStartLoading) |
PPAPI_DISPATCH_HOST_RESOURCE_CALL_0(PpapiHostMsg_PDF_DidStopLoading, |
@@ -111,14 +84,6 @@ int32_t PepperPDFHost::OnResourceMessageReceived( |
return PP_ERROR_FAILED; |
} |
-int32_t PepperPDFHost::OnHostMsgGetLocalizedString( |
- ppapi::host::HostMessageContext* context, |
- PP_ResourceString string_id) { |
- std::string rv = GetStringResource(string_id); |
- context->reply_msg = PpapiPluginMsg_PDF_GetLocalizedStringReply(rv); |
- return PP_OK; |
-} |
- |
int32_t PepperPDFHost::OnHostMsgDidStartLoading( |
ppapi::host::HostMessageContext* context) { |
content::PepperPluginInstance* instance = |