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

Unified Diff: chrome/renderer/render_process_impl.cc

Issue 2799009: Don't check if the internal plugin exists when someone just asks for its path... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 6 months 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.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/render_process_impl.cc
===================================================================
--- chrome/renderer/render_process_impl.cc (revision 49839)
+++ chrome/renderer/render_process_impl.cc (working copy)
@@ -184,7 +184,8 @@
// Load the pdf plugin before the sandbox is turned on.
FilePath pdf;
- if (PathService::Get(chrome::FILE_PDF_PLUGIN, &pdf)) {
+ if (PathService::Get(chrome::FILE_PDF_PLUGIN, &pdf) &&
+ file_util::PathExists(pdf)) {
static scoped_refptr<NPAPI::PluginLib> pdf_lib =
NPAPI::PluginLib::CreatePluginLib(pdf);
// Load the plugin now before the sandbox engages and keep it always loaded.
« no previous file with comments | « chrome/common/chrome_paths.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698