Chromium Code Reviews| Index: chrome/common/chrome_paths.cc |
| =================================================================== |
| --- chrome/common/chrome_paths.cc (revision 133542) |
| +++ chrome/common/chrome_paths.cc (working copy) |
| @@ -71,6 +71,19 @@ |
| FILE_PATH_LITERAL("pepper/libppgoogletalk.so"); |
| #endif // defined(OS_POSIX) && !defined(OS_MACOSX) |
| + |
| +#if defined(OS_LINUX) && !defined(OS_CHROMEOS) |
| +// The search path that contains information about per-extension |
| +// definition files. |
|
Finnur
2012/04/25 13:33:45
Suggest: The path to the external extension <id>.j
Alexandre Abreu
2012/04/25 15:31:05
Done.
|
| +// /usr/share seems like a good choice, see: http://www.pathname.com/fhs/ |
| +const char kFilepathSinglePrefExtensions[] = |
| +#if defined(GOOGLE_CHROME_BUILD) |
| + FILE_PATH_LITERAL("/usr/share/google-chrome/extensions"); |
| +#else |
| + FILE_PATH_LITERAL("/usr/share/chromium/extensions"); |
| +#endif // defined(GOOGLE_CHROME_BUILD) |
| +#endif // defined(OS_LINUX) && !defined(OS_CHROMEOS) |
| + |
| } // namespace |
| namespace chrome { |
| @@ -361,6 +374,12 @@ |
| break; |
| } |
| #endif |
| +#if defined(OS_LINUX) && !defined(OS_CHROMEOS) |
| + case chrome::DIR_STANDALONE_EXTERNAL_EXTENSIONS: { |
| + cur = FilePath(FILE_PATH_LITERAL(kFilepathSinglePrefExtensions)); |
| + break; |
| + } |
| +#endif |
| case chrome::DIR_EXTERNAL_EXTENSIONS: |
| #if defined(OS_MACOSX) |
| if (!chrome::GetGlobalApplicationSupportDirectory(&cur)) |