Index: chrome/app/chrome_main_delegate.cc |
diff --git a/chrome/app/chrome_main_delegate.cc b/chrome/app/chrome_main_delegate.cc |
index 608d513c19c4680b54fb35188c277c32a8432739..7a840221a2a8c9a388e6313251d705644c1d0c4d 100644 |
--- a/chrome/app/chrome_main_delegate.cc |
+++ b/chrome/app/chrome_main_delegate.cc |
@@ -119,6 +119,11 @@ |
#include "remoting/client/plugin/pepper_entrypoints.h" |
#endif |
+#if defined(ENABLE_PLUGINS) && (defined(CHROME_MULTIPLE_DLL_CHILD) || \ |
+ !defined(CHROME_MULTIPLE_DLL_BROWSER)) |
+#include "pdf/pdf.h" |
+#endif |
+ |
#if !defined(CHROME_MULTIPLE_DLL_BROWSER) |
#include "chrome/child/pdf_child_init.h" |
@@ -826,6 +831,12 @@ void ChromeMainDelegate::SandboxInitialized(const std::string& process_type) { |
nacl_plugin::PPP_InitializeModule, |
nacl_plugin::PPP_ShutdownModule); |
#endif |
+#if defined(ENABLE_PLUGINS) |
+ ChromeContentClient::SetPDFEntryFunctions( |
+ chrome_pdf::PPP_GetInterface, |
+ chrome_pdf::PPP_InitializeModule, |
+ chrome_pdf::PPP_ShutdownModule); |
+#endif |
#endif |
} |