summaryrefslogtreecommitdiffstats
path: root/chrome/browser/mock_plugin_exceptions_table_model.cc
diff options
context:
space:
mode:
authorjkummerow@chromium.org <jkummerow@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-07 13:29:41 +0000
committerjkummerow@chromium.org <jkummerow@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-07 13:29:41 +0000
commit79ce10352dd7f73f221a68e2e9b62bb8aa30887b (patch)
tree6ad96840fc5a452c43af2c39f154caf86c66a963 /chrome/browser/mock_plugin_exceptions_table_model.cc
parentd6166ca658f5011183ff2402d4d675e673e4e315 (diff)
downloadchromium_src-79ce10352dd7f73f221a68e2e9b62bb8aa30887b.zip
chromium_src-79ce10352dd7f73f221a68e2e9b62bb8aa30887b.tar.gz
chromium_src-79ce10352dd7f73f221a68e2e9b62bb8aa30887b.tar.bz2
Clean up PluginGroup and related code.
To avoid data races, do not pass pointers to PluginGroup around. Instead, create copies as plain objects. BUG=61210 TEST=existing unit tests still work; TSan no longer reports the race (see bug) Review URL: http://codereview.chromium.org/5516004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68471 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/mock_plugin_exceptions_table_model.cc')
-rw-r--r--chrome/browser/mock_plugin_exceptions_table_model.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/mock_plugin_exceptions_table_model.cc b/chrome/browser/mock_plugin_exceptions_table_model.cc
index e2d38a7..77b2a2f 100644
--- a/chrome/browser/mock_plugin_exceptions_table_model.cc
+++ b/chrome/browser/mock_plugin_exceptions_table_model.cc
@@ -5,11 +5,11 @@
#include "chrome/browser/mock_plugin_exceptions_table_model.h"
void MockPluginExceptionsTableModel::set_plugins(
- const NPAPI::PluginList::PluginMap& plugins) {
+ std::vector<PluginGroup>& plugins) {
plugins_ = plugins;
}
void MockPluginExceptionsTableModel::GetPlugins(
- NPAPI::PluginList::PluginMap* plugins) {
- *plugins = plugins_;
+ std::vector<PluginGroup>* plugin_groups) {
+ *plugin_groups = plugins_;
}