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 c7e494a0abf29ca30bb183eaf1d8bc07f3f6904c..a2d76b810e847395b3953321044b920f6019da7a 100644 |
--- a/webkit/plugins/npapi/plugin_list_win.cc |
+++ b/webkit/plugins/npapi/plugin_list_win.cc |
@@ -348,7 +348,7 @@ bool PluginList::ShouldLoadPluginUsingPluginList( |
(plugin1 == kJavaDeploy2 && plugin2 == kJavaDeploy1)) { |
if (!IsNewerVersion((*plugins)[j].version, info.version)) |
return false; // We have loaded a plugin whose version is newer. |
- PluginList::RemovePlugin((*plugins)[j].path, plugins); |
+ plugins->erase(plugins->begin() + j); |
break; |
} |
} |
@@ -398,7 +398,7 @@ bool PluginList::ShouldLoadPluginUsingPluginList( |
for (size_t j = 0; j < plugins->size(); ++j) { |
if ((*plugins)[j].path.BaseName().value() == kOldWMPPlugin) { |
- PluginList::RemovePlugin((*plugins)[j].path, plugins); |
+ plugins->erase(plugins->begin() + j); |
break; |
} |
} |