Return matching plug-ins in the sorted order (by version number).
commit4e85818b13bfc3210e7f2dbc7b55d5621df7b391
authorrchlodnicki@opera.com <rchlodnicki@opera.com@0039d316-1c4b-4281-b951-d872f2087c98>
Mon, 28 Oct 2013 19:44:39 +0000 (28 19:44 +0000)
committerrchlodnicki@opera.com <rchlodnicki@opera.com@0039d316-1c4b-4281-b951-d872f2087c98>
Mon, 28 Oct 2013 19:44:39 +0000 (28 19:44 +0000)
tree4458331bf2db41b10af0e32e50ddc7ec6331dfdf
parent3f3f45f1a6767c4318aaca74cc41c9e89d8f8fd7
Return matching plug-ins in the sorted order (by version number).

In case there are multiple plug-ins in one group (multiple versions
of Flash plug-in for example), returning sorted list that has highest
version first makes sure that Chrome won't try to load outdated
version and end up blocking it in the end.

BUG=13892

Review URL: https://codereview.chromium.org/26541011

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231381 0039d316-1c4b-4281-b951-d872f2087c98
content/common/plugin_list.cc
content/common/plugin_list.h
content/common/plugin_list_unittest.cc