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

Unified Diff: chrome/browser/plugin_updater.cc

Issue 7648017: Make WebPluginInfo more generic (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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
« no previous file with comments | « chrome/browser/plugin_updater.h ('k') | chrome/browser/ui/cocoa/drag_util.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/plugin_updater.cc
===================================================================
--- chrome/browser/plugin_updater.cc (revision 96613)
+++ chrome/browser/plugin_updater.cc (working copy)
@@ -22,7 +22,7 @@
#include "content/browser/browser_thread.h"
#include "content/common/notification_service.h"
#include "webkit/plugins/npapi/plugin_list.h"
-#include "webkit/plugins/npapi/webplugininfo.h"
+#include "webkit/plugins/webplugininfo.h"
// How long to wait to save the plugin enabled information, which might need to
// go to disk.
@@ -33,12 +33,12 @@
}
DictionaryValue* PluginUpdater::CreatePluginFileSummary(
- const webkit::npapi::WebPluginInfo& plugin) {
+ const webkit::WebPluginInfo& plugin) {
DictionaryValue* data = new DictionaryValue();
data->SetString("path", plugin.path.value());
data->SetString("name", plugin.name);
data->SetString("version", plugin.version);
- data->SetBoolean("enabled", webkit::npapi::IsPluginEnabled(plugin));
+ data->SetBoolean("enabled", webkit::IsPluginEnabled(plugin));
return data;
}
@@ -263,7 +263,7 @@
}
void PluginUpdater::GetPreferencesDataOnFileThread(void* profile) {
- std::vector<webkit::npapi::WebPluginInfo> plugins;
+ std::vector<webkit::WebPluginInfo> plugins;
webkit::npapi::PluginList::Singleton()->GetPlugins(&plugins);
std::vector<webkit::npapi::PluginGroup> groups;
@@ -279,7 +279,7 @@
void PluginUpdater::OnUpdatePreferences(
Profile* profile,
- const std::vector<webkit::npapi::WebPluginInfo>& plugins,
+ const std::vector<webkit::WebPluginInfo>& plugins,
const std::vector<webkit::npapi::PluginGroup>& groups) {
ListPrefUpdate update(profile->GetPrefs(), prefs::kPluginsPluginsList);
ListValue* plugins_list = update.Get();
@@ -295,10 +295,10 @@
DictionaryValue* summary = CreatePluginFileSummary(plugins[i]);
// If the plugin is managed by policy, store the user preferred state
// instead.
- if (plugins[i].enabled & webkit::npapi::WebPluginInfo::MANAGED_MASK) {
+ if (plugins[i].enabled & webkit::WebPluginInfo::MANAGED_MASK) {
bool user_enabled =
- (plugins[i].enabled & webkit::npapi::WebPluginInfo::USER_MASK) ==
- webkit::npapi::WebPluginInfo::USER_ENABLED;
+ (plugins[i].enabled & webkit::WebPluginInfo::USER_MASK) ==
+ webkit::WebPluginInfo::USER_ENABLED;
summary->SetBoolean("enabled", user_enabled);
}
plugins_list->Append(summary);
« no previous file with comments | « chrome/browser/plugin_updater.h ('k') | chrome/browser/ui/cocoa/drag_util.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698