summaryrefslogtreecommitdiffstats
path: root/chrome/common/chrome_paths.cc
diff options
context:
space:
mode:
authorluken@chromium.org <luken@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-29 07:22:06 +0000
committerluken@chromium.org <luken@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-29 07:22:06 +0000
commit49799b6d2511dfcca86f24524e335a3aa8e21292 (patch)
treecd6b7cc996b479a4dbd4eef4e71eda478c7202a6 /chrome/common/chrome_paths.cc
parent6725ec5381f952a12aeb7c1d52859476d05dcff8 (diff)
downloadchromium_src-49799b6d2511dfcca86f24524e335a3aa8e21292.zip
chromium_src-49799b6d2511dfcca86f24524e335a3aa8e21292.tar.gz
chromium_src-49799b6d2511dfcca86f24524e335a3aa8e21292.tar.bz2
Modifies the pepper flash component installer to also look in a path under the Windows system directory for a debugger version of the flash DLL. This DLL is not registered as a chrome component. It is configured to load after the non-debugger flash DLL.
BUG=345886 Review URL: https://codereview.chromium.org/203993004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@266761 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/chrome_paths.cc')
-rw-r--r--chrome/common/chrome_paths.cc18
1 files changed, 18 insertions, 0 deletions
diff --git a/chrome/common/chrome_paths.cc b/chrome/common/chrome_paths.cc
index e9d841f..352b51a 100644
--- a/chrome/common/chrome_paths.cc
+++ b/chrome/common/chrome_paths.cc
@@ -44,6 +44,11 @@ const base::FilePath::CharType kInternalFlashPluginFileName[] =
const base::FilePath::CharType kPepperFlashBaseDirectory[] =
FILE_PATH_LITERAL("PepperFlash");
+#if defined(OS_WIN)
+const base::FilePath::CharType kPepperFlashDebuggerBaseDirectory[] =
+ 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)
@@ -263,6 +268,19 @@ bool PathProvider(int key, base::FilePath* result) {
return false;
cur = cur.Append(kPepperFlashBaseDirectory);
break;
+ case chrome::DIR_PEPPER_FLASH_DEBUGGER_PLUGIN:
+#if defined(OS_WIN)
+ if (!PathService::Get(base::DIR_SYSTEM, &cur))
+ return false;
+ cur = cur.Append(kPepperFlashDebuggerBaseDirectory);
+#elif defined(OS_MACOSX)
+ // TODO(luken): finalize Mac OS directory paths, current consensus is
+ // around /Library/Internet Plug-Ins/PepperFlashPlayer/
+ return false;
+#else
+ return false;
+#endif
+ break;
case chrome::FILE_LOCAL_STATE:
if (!PathService::Get(chrome::DIR_USER_DATA, &cur))
return false;