Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(211)

Unified Diff: chrome/browser/plugin_exceptions_table_model.cc

Issue 7980011: Convert the PluginService interface to be an async wrapper around PluginList. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/plugin_exceptions_table_model.cc
diff --git a/chrome/browser/plugin_exceptions_table_model.cc b/chrome/browser/plugin_exceptions_table_model.cc
index a2e532b24a3fcfec7f00c76ffb5ad2452f57866f..6d639264e1a660a3bd4dbe708f7502f8c1ba262a 100644
--- a/chrome/browser/plugin_exceptions_table_model.cc
+++ b/chrome/browser/plugin_exceptions_table_model.cc
@@ -8,10 +8,13 @@
#include "base/sys_string_conversions.h"
#include "base/utf_string_conversions.h"
#include "chrome/common/chrome_notification_types.h"
+#include "content/browser/plugin_service.h"
#include "content/common/notification_service.h"
#include "grit/generated_resources.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/models/table_model_observer.h"
+#include "webkit/plugins/npapi/plugin_group.h"
+#include "webkit/plugins/webplugininfo.h"
PluginExceptionsTableModel::PluginExceptionsTableModel(
HostContentSettingsMap* content_settings_map,
@@ -139,7 +142,7 @@ void PluginExceptionsTableModel::ClearSettings() {
void PluginExceptionsTableModel::GetPlugins(
std::vector<webkit::npapi::PluginGroup>* plugin_groups) {
- webkit::npapi::PluginList::Singleton()->GetPluginGroups(false, plugin_groups);
+ PluginService::GetInstance()->GetCachedPluginGroups(plugin_groups);
}
void PluginExceptionsTableModel::LoadSettings() {

Powered by Google App Engine
This is Rietveld 408576698