summaryrefslogtreecommitdiffstats
path: root/webkit/plugins/npapi
diff options
context:
space:
mode:
authorsergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-07 21:30:28 +0000
committersergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-07 21:30:28 +0000
commit59d9842fd636085f69523ca6a269e9ee63ec737a (patch)
tree802620d5c4158397cae812fbe392981ef319a4c2 /webkit/plugins/npapi
parent7f81a9d5bf3fc23a5871d2bad2b2bd3a9fabf4ff (diff)
downloadchromium_src-59d9842fd636085f69523ca6a269e9ee63ec737a.zip
chromium_src-59d9842fd636085f69523ca6a269e9ee63ec737a.tar.gz
chromium_src-59d9842fd636085f69523ca6a269e9ee63ec737a.tar.bz2
Check that a plugin path points to a file before rejecting the plugin because it's 64-bit.
BUG=75131 TEST=none Review URL: http://codereview.chromium.org/6635013 Patch from Simon Morris <simonmorris@chromium.org>. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77186 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/plugins/npapi')
-rw-r--r--webkit/plugins/npapi/plugin_list_win.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/webkit/plugins/npapi/plugin_list_win.cc b/webkit/plugins/npapi/plugin_list_win.cc
index 95004f8..d05c505 100644
--- a/webkit/plugins/npapi/plugin_list_win.cc
+++ b/webkit/plugins/npapi/plugin_list_win.cc
@@ -443,7 +443,7 @@ bool PluginList::ShouldLoadPlugin(const WebPluginInfo& info,
if (info.path == internal_plugins_[i].info.path)
continue;
- if (!IsValid32BitImage(info.path))
+ if (file_util::PathExists(info.path) && (!IsValid32BitImage(info.path)))
load_plugin = false;
break;
}