summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
authorabarth@chromium.org <abarth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-08 21:02:45 +0000
committerabarth@chromium.org <abarth@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-08 21:02:45 +0000
commit5be20ecdd5b71ecfc80639e5656878bd52a0a0b1 (patch)
treedd576e6f071a8ca73f939992d77457f173c07971 /webkit
parent06aaac23ed35f7f34ab523172fc31322a88f1e38 (diff)
downloadchromium_src-5be20ecdd5b71ecfc80639e5656878bd52a0a0b1.zip
chromium_src-5be20ecdd5b71ecfc80639e5656878bd52a0a0b1.tar.gz
chromium_src-5be20ecdd5b71ecfc80639e5656878bd52a0a0b1.tar.bz2
Load extension plugins before looking for plugins in other places, e.g.
Firefox's plugins directory. This allows extensions to override the user's default plugin for a particular mime type. BUG=15943 TEST=none R=mpcomplete Patch by Collin Jackson Review URL: http://codereview.chromium.org/149346 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20185 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r--webkit/glue/plugins/plugin_list.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/webkit/glue/plugins/plugin_list.cc b/webkit/glue/plugins/plugin_list.cc
index 56a59db..125547d 100644
--- a/webkit/glue/plugins/plugin_list.cc
+++ b/webkit/glue/plugins/plugin_list.cc
@@ -159,16 +159,16 @@ void PluginList::LoadPlugins(bool refresh) {
std::vector<FilePath> directories_to_scan;
GetPluginDirectories(&directories_to_scan);
- for (size_t i = 0; i < directories_to_scan.size(); ++i) {
- LoadPluginsFromDir(directories_to_scan[i]);
- }
+ for (size_t i = 0; i < extra_plugin_paths_.size(); ++i)
+ LoadPlugin(extra_plugin_paths_[i]);
for (size_t i = 0; i < extra_plugin_dirs_.size(); ++i) {
LoadPluginsFromDir(extra_plugin_dirs_[i]);
}
- for (size_t i = 0; i < extra_plugin_paths_.size(); ++i)
- LoadPlugin(extra_plugin_paths_[i]);
+ for (size_t i = 0; i < directories_to_scan.size(); ++i) {
+ LoadPluginsFromDir(directories_to_scan[i]);
+ }
LoadInternalPlugins();