diff options
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/app/chrome_main.cc | 1 | ||||
-rw-r--r-- | chrome/common/chrome_paths.cc | 12 | ||||
-rw-r--r-- | chrome/common/chrome_paths.h | 1 |
3 files changed, 14 insertions, 0 deletions
diff --git a/chrome/app/chrome_main.cc b/chrome/app/chrome_main.cc index e19f550..2801b5b 100644 --- a/chrome/app/chrome_main.cc +++ b/chrome/app/chrome_main.cc @@ -875,6 +875,7 @@ int ChromeMain(int argc, char** argv) { if (process_type == switches::kRendererProcess || process_type == switches::kExtensionProcess || process_type == switches::kNaClLoaderProcess || + process_type == switches::kPpapiPluginProcess || process_type == switches::kGpuProcess) { initialize_sandbox = false; } diff --git a/chrome/common/chrome_paths.cc b/chrome/common/chrome_paths.cc index 181cf0a..1b8e612 100644 --- a/chrome/common/chrome_paths.cc +++ b/chrome/common/chrome_paths.cc @@ -239,6 +239,18 @@ bool PathProvider(int key, FilePath* result) { cur = cur.Append(FILE_PATH_LITERAL("libpdf.so")); #endif break; + case chrome::FILE_NACL_PLUGIN: + if (!GetInternalPluginsDirectory(&cur)) + return false; +#if defined(OS_WIN) + cur = cur.Append(FILE_PATH_LITERAL("ppGoogleNaClPluginChrome.dll")); +#elif defined(OS_MACOSX) + // TODO(noelallen) Please verify this extention name is correct. + cur = cur.Append(FILE_PATH_LITERAL("ppGoogleNaClPluginChrome.plugin")); +#else // Linux and Chrome OS + cur = cur.Append(FILE_PATH_LITERAL("libppGoogleNaClPluginChrome.so")); +#endif + break; case chrome::FILE_RESOURCES_PACK: #if defined(OS_MACOSX) if (mac_util::AmIBundled()) { diff --git a/chrome/common/chrome_paths.h b/chrome/common/chrome_paths.h index 63037c6..21867bd 100644 --- a/chrome/common/chrome_paths.h +++ b/chrome/common/chrome_paths.h @@ -57,6 +57,7 @@ enum { FILE_GEARS_PLUGIN, // Full path to the gears.dll plugin file. FILE_FLASH_PLUGIN, // Full path to the internal Flash plugin file. FILE_PDF_PLUGIN, // Full path to the internal PDF plugin file. + FILE_NACL_PLUGIN, // Full path to the internal NaCl plugin file. FILE_LIBAVCODEC, // Full path to libavcodec media decoding // library. FILE_LIBAVFORMAT, // Full path to libavformat media parsing |