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

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: Use DIR_MODULE instead of InternalPlugins 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
« no previous file with comments | « 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..e2f10194862dd510bed9749ad0d3c33f23ab9eb2 100644
--- a/chrome/common/chrome_paths.cc
+++ b/chrome/common/chrome_paths.cc
@@ -60,6 +60,16 @@ const FilePath::CharType kInternalNaClHelperBootstrapFileName[] =
FILE_PATH_LITERAL("nacl_helper_bootstrap");
#endif
+
+#if defined(OS_POSIX) && !defined(OS_MACOSX)
+
+const FilePath::CharType kO3DPluginFileName[] =
+ FILE_PATH_LITERAL("pepper/libppo3dautoplugin.so");
+
+const FilePath::CharType kGTalkPluginFileName[] =
+ FILE_PATH_LITERAL("pepper/libppgoogletalk.so");
+
+#endif // defined(OS_POSIX) && !defined(OS_MACOSX)
} // namespace
namespace chrome {
@@ -253,6 +263,16 @@ bool PathProvider(int key, FilePath* result) {
return false;
cur = cur.Append(kInternalNaClHelperBootstrapFileName);
break;
+ case chrome::FILE_O3D_PLUGIN:
+ if (!PathService::Get(base::DIR_MODULE, &cur))
+ return false;
+ cur = cur.Append(kO3DPluginFileName);
+ break;
+ case chrome::FILE_GTALK_PLUGIN:
+ if (!PathService::Get(base::DIR_MODULE, &cur))
+ return false;
+ cur = cur.Append(kGTalkPluginFileName);
+ break;
#endif
case chrome::FILE_RESOURCES_PACK:
#if defined(OS_MACOSX)
« no previous file with comments | « chrome/common/chrome_paths.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698