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

Unified Diff: webkit/plugins/npapi/plugin_list_win.cc

Issue 17543004: Allow the same version plugin to be loaded multiple times on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reverted comment change. Created 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/npapi/plugin_list_win.cc
diff --git a/webkit/plugins/npapi/plugin_list_win.cc b/webkit/plugins/npapi/plugin_list_win.cc
index e8b7b03979142cebb25529867ffc241bff648a8a..fb8b75293edb7dc4593d5e1862933d10e0394075 100644
--- a/webkit/plugins/npapi/plugin_list_win.cc
+++ b/webkit/plugins/npapi/plugin_list_win.cc
@@ -390,7 +390,7 @@ bool PluginList::ShouldLoadPluginUsingPluginList(
if ((plugin1 == plugin2 && HaveSharedMimeType((*plugins)[j], info)) ||
(plugin1 == kJavaDeploy1 && plugin2 == kJavaDeploy2) ||
(plugin1 == kJavaDeploy2 && plugin2 == kJavaDeploy1)) {
- if (!IsNewerVersion((*plugins)[j].version, info.version))
+ if (IsNewerVersion(info.version, (*plugins)[j].version))
return false; // We have loaded a plugin whose version is newer.
plugins->erase(plugins->begin() + j);
break;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698