Index: chrome/common/chrome_paths.cc |
diff --git a/chrome/common/chrome_paths.cc b/chrome/common/chrome_paths.cc |
index 9537376b47f4e2e9a27908eb3342680cb287ed82..af56236b4ed642995420578008df28d515b6605b 100644 |
--- a/chrome/common/chrome_paths.cc |
+++ b/chrome/common/chrome_paths.cc |
@@ -50,6 +50,16 @@ |
FILE_PATH_LITERAL("Macromed\\Flash"); |
#endif |
+// File name of the internal PDF plugin on different platforms. |
+const base::FilePath::CharType kInternalPDFPluginFileName[] = |
+#if defined(OS_WIN) |
+ FILE_PATH_LITERAL("pdf.dll"); |
+#elif defined(OS_MACOSX) |
+ FILE_PATH_LITERAL("PDF.plugin"); |
+#else // Linux and Chrome OS |
+ FILE_PATH_LITERAL("libpdf.so"); |
+#endif |
+ |
const base::FilePath::CharType kInternalNaClPluginFileName[] = |
FILE_PATH_LITERAL("internal-nacl-plugin"); |
@@ -284,6 +294,11 @@ |
return false; |
cur = cur.Append(chrome::kPepperFlashPluginFilename); |
break; |
+ case chrome::FILE_PDF_PLUGIN: |
+ if (!GetInternalPluginsDirectory(&cur)) |
+ return false; |
+ cur = cur.Append(kInternalPDFPluginFileName); |
+ break; |
case chrome::FILE_EFFECTS_PLUGIN: |
if (!GetInternalPluginsDirectory(&cur)) |
return false; |