summaryrefslogtreecommitdiffstats
path: root/chrome/browser/plugin_exceptions_table_model.cc
diff options
context:
space:
mode:
authorbauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-26 20:40:14 +0000
committerbauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-26 20:40:14 +0000
commitb7715f1e5ceeb9734da977732b4dd5fe2b7bd1c9 (patch)
tree8fa6f62dbbe9226e195b2af16a43011ad9fd149a /chrome/browser/plugin_exceptions_table_model.cc
parentc94a6109bd2db552573ccbac287b6999c1e998c3 (diff)
downloadchromium_src-b7715f1e5ceeb9734da977732b4dd5fe2b7bd1c9.zip
chromium_src-b7715f1e5ceeb9734da977732b4dd5fe2b7bd1c9.tar.gz
chromium_src-b7715f1e5ceeb9734da977732b4dd5fe2b7bd1c9.tar.bz2
Also use plugin group identifiers in PluginExceptionsTableModel.
BUG=39252 TEST=TableModelArrayControllerTest.*:PluginExceptionsTableModelTest.* Review URL: http://codereview.chromium.org/3474010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60615 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/plugin_exceptions_table_model.cc')
-rw-r--r--chrome/browser/plugin_exceptions_table_model.cc19
1 files changed, 7 insertions, 12 deletions
diff --git a/chrome/browser/plugin_exceptions_table_model.cc b/chrome/browser/plugin_exceptions_table_model.cc
index 5b01df5..e9abc35 100644
--- a/chrome/browser/plugin_exceptions_table_model.cc
+++ b/chrome/browser/plugin_exceptions_table_model.cc
@@ -10,8 +10,8 @@
#include "base/sys_string_conversions.h"
#include "base/utf_string_conversions.h"
#include "chrome/common/notification_service.h"
+#include "chrome/common/plugin_group.h"
#include "grit/generated_resources.h"
-#include "webkit/glue/plugins/plugin_list.h"
PluginExceptionsTableModel::PluginExceptionsTableModel(
HostContentSettingsMap* content_settings_map,
@@ -128,22 +128,17 @@ void PluginExceptionsTableModel::ClearSettings() {
resources_.clear();
}
-void PluginExceptionsTableModel::GetPlugins(
- std::vector<WebPluginInfo>* plugins) {
- NPAPI::PluginList::Singleton()->GetPlugins(false, plugins);
+void PluginExceptionsTableModel::GetPlugins(PluginUpdater::PluginMap* plugins) {
+ PluginUpdater::GetPluginUpdater()->GetPluginGroups(plugins);
}
void PluginExceptionsTableModel::LoadSettings() {
int group_id = 0;
- std::vector<WebPluginInfo> plugins;
+ PluginUpdater::PluginMap plugins;
GetPlugins(&plugins);
- for (std::vector<WebPluginInfo>::iterator it = plugins.begin();
+ for (PluginUpdater::PluginMap::iterator it = plugins.begin();
it != plugins.end(); ++it) {
-#if defined OS_POSIX
- std::string plugin = it->path.value();
-#elif defined OS_WIN
- std::string plugin = base::SysWideToUTF8(it->path.value());
-#endif
+ std::string plugin = it->first;
HostContentSettingsMap::SettingsForOneType settings;
map_->GetSettingsForOneType(CONTENT_SETTINGS_TYPE_PLUGINS,
plugin,
@@ -154,7 +149,7 @@ void PluginExceptionsTableModel::LoadSettings() {
plugin,
&otr_settings);
}
- std::wstring title = UTF16ToWide(it->name);
+ std::wstring title = UTF16ToWide(it->second->GetGroupName());
for (HostContentSettingsMap::SettingsForOneType::iterator setting_it =
settings.begin(); setting_it != settings.end(); ++setting_it) {
SettingsEntry entry = {