Chromium Code Reviews| Index: chrome/common/chrome_paths.cc |
| diff --git a/chrome/common/chrome_paths.cc b/chrome/common/chrome_paths.cc |
| index 74bf04137c64c111ffe84c8d26aa9a4500b72a31..0da194d8720e82183e552d10db402e5f3efeac15 100644 |
| --- a/chrome/common/chrome_paths.cc |
| +++ b/chrome/common/chrome_paths.cc |
| @@ -60,6 +60,11 @@ const base::FilePath::CharType kFilepathSinglePrefExtensions[] = |
| #else |
| FILE_PATH_LITERAL("/usr/share/chromium/extensions"); |
| #endif // defined(GOOGLE_CHROME_BUILD) |
| + |
| +// The path to the hint file that tells the pepper plugin loader |
| +// where it can find the latest component updated flash. |
| +const base::FilePath::CharType kComponentUpdatedFlashHint[] = |
| + FILE_PATH_LITERAL("latest-component-updated-flash"); |
| #endif // defined(OS_LINUX) |
| static base::LazyInstance<base::FilePath> |
| @@ -566,6 +571,14 @@ bool PathProvider(int key, base::FilePath* result) { |
| cur = cur.Append(kOfflinePageMetadataDirname); |
| break; |
| #endif // defined(OS_ANDROID) |
| +#if defined(OS_LINUX) |
| + case chrome::FILE_COMPONENT_FLASH_HINT: |
| + if (!PathService::Get(chrome::DIR_COMPONENT_UPDATED_PEPPER_FLASH_PLUGIN, |
| + &cur)) |
|
Lei Zhang
2015/08/14 22:37:07
add braces
Greg K
2015/08/17 21:11:57
Done.
|
| + return false; |
| + cur = cur.Append(kComponentUpdatedFlashHint); |
| + break; |
| +#endif // defined(OS_LINUX) |
| default: |
| return false; |