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

Unified Diff: chrome/common/chrome_paths.cc

Issue 8899014: Register O3D/GTalk PPAPI plugins if available (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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
« chrome/common/chrome_content_client.cc ('K') | « chrome/common/chrome_paths.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/chrome_paths.cc
diff --git a/chrome/common/chrome_paths.cc b/chrome/common/chrome_paths.cc
index 5af2ce3be302433a3e1bca160fdfbc7c0d598fd6..0ad687c59473a3413979f92d6a81084d3f63eee1 100644
--- a/chrome/common/chrome_paths.cc
+++ b/chrome/common/chrome_paths.cc
@@ -60,6 +60,29 @@ const FilePath::CharType kInternalNaClHelperBootstrapFileName[] =
FILE_PATH_LITERAL("nacl_helper_bootstrap");
#endif
+
+#if defined(OS_POSIX) && !defined(OS_MACOSX)
+
+#if defined(OS_CHROMEOS)
+
+const FilePath::CharType kO3DPluginFileName[] =
+ FILE_PATH_LITERAL("/opt/google/o3d/libppo3dautoplugin.so");
piman 2011/12/13 01:48:02 Do we need a different path on Chrome OS vs non-Ch
Josh Horwich 2011/12/13 22:06:30 Done - I moved it to the pepper directory on all L
+
+const FilePath::CharType kGTalkPluginFileName[] =
+ FILE_PATH_LITERAL("/opt/google/talkplugin/libppgoogletalk.so");
+
+#else // defined(OS_CHROMEOS)
+
+// File name of the O3D and GTalk plugin, Linux only
+const FilePath::CharType kO3DPluginFileName[] =
+ FILE_PATH_LITERAL("libppo3dautoplugin.so");
+
+const FilePath::CharType kGTalkPluginFileName[] =
+ FILE_PATH_LITERAL("libppgoogletalk.so");
+
+#endif // defined(OS_CHROMEOS)
+
+#endif // defined(OS_POSIX) && !defined(OS_MACOSX)
} // namespace
namespace chrome {
@@ -253,6 +276,24 @@ bool PathProvider(int key, FilePath* result) {
return false;
cur = cur.Append(kInternalNaClHelperBootstrapFileName);
break;
+ case chrome::FILE_O3D_PLUGIN:
+#if defined(OS_CHROMEOS)
+ cur = FilePath(kO3DPluginFileName);
+#else // defined(OS_CHROMEOS)
+ if (!GetInternalPluginsDirectory(&cur))
+ return false;
+ cur = cur.Append(kO3DPluginFileName);
+#endif // OS_CHROMEOS
+ break;
+ case chrome::FILE_GTALK_PLUGIN:
+#if defined(OS_CHROMEOS)
+ cur = FilePath(kGTalkPluginFileName);
+#else // defined(OS_CHROMEOS)
+ if (!GetInternalPluginsDirectory(&cur))
+ return false;
+ cur = cur.Append(kGTalkPluginFileName);
+#endif // OS_CHROMEOS
+ break;
#endif
case chrome::FILE_RESOURCES_PACK:
#if defined(OS_MACOSX)
« chrome/common/chrome_content_client.cc ('K') | « chrome/common/chrome_paths.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698