diff options
author | bauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-21 15:00:34 +0000 |
---|---|---|
committer | bauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-21 15:00:34 +0000 |
commit | 74b8d3e4e52a6419a98ecc40b6f6710f7911726d (patch) | |
tree | e8f076d596363ea2ac0cc61831260c3d395a9436 /chrome/common/plugin_group_unittest.cc | |
parent | 0b7ba8c5a0f954e8dea8709a34a5b5f0dc40c615 (diff) | |
download | chromium_src-74b8d3e4e52a6419a98ecc40b6f6710f7911726d.zip chromium_src-74b8d3e4e52a6419a98ecc40b6f6710f7911726d.tar.gz chromium_src-74b8d3e4e52a6419a98ecc40b6f6710f7911726d.tar.bz2 |
Add a unique identifier for plugin groups and use it to identify blocked plugins.
Currently we use the plugin path as identifier for per-plugin content settings, which is not stable across Chrome updates or plugin moves.
The new identifier is either hardcoded (for predefined plugin groups), or the filename without path.
BUG=39252
TEST=none
Review URL: http://codereview.chromium.org/3384014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60054 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/plugin_group_unittest.cc')
-rw-r--r-- | chrome/common/plugin_group_unittest.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/common/plugin_group_unittest.cc b/chrome/common/plugin_group_unittest.cc index 7bef7d2..a42cbaf 100644 --- a/chrome/common/plugin_group_unittest.cc +++ b/chrome/common/plugin_group_unittest.cc @@ -16,13 +16,13 @@ #include "webkit/glue/plugins/webplugininfo.h" static const PluginGroupDefinition kPluginDef = { - "MyPlugin", "MyPlugin", "", "", "3.0.44", "http://latest/" }; + "myplugin", "MyPlugin", "MyPlugin", "", "", "3.0.44", "http://latest/" }; static const PluginGroupDefinition kPluginDef3 = { - "MyPlugin 3", "MyPlugin", "0", "4", "3.0.44", "http://latest" }; + "myplugin-3", "MyPlugin 3", "MyPlugin", "0", "4", "3.0.44", "http://latest" }; static const PluginGroupDefinition kPluginDef4 = { - "MyPlugin 4", "MyPlugin", "4", "5", "4.0.44", "http://latest" }; + "myplugin-4", "MyPlugin 4", "MyPlugin", "4", "5", "4.0.44", "http://latest" }; static const PluginGroupDefinition kPluginDefNotVulnerable = { - "MyPlugin", "MyPlugin", "", "", "", "http://latest" }; + "myplugin-latest", "MyPlugin", "MyPlugin", "", "", "", "http://latest" }; // name, path, version, desc, mime_types, enabled. static WebPluginInfo kPlugin2043 = { |