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

Unified Diff: chrome/browser/plugins/plugin_prefs.cc

Issue 12079044: Fix enable state of Pepper Flash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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/plugins/plugin_prefs.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/plugins/plugin_prefs.cc
diff --git a/chrome/browser/plugins/plugin_prefs.cc b/chrome/browser/plugins/plugin_prefs.cc
index 9416d43abbb91ed1fdb65dbda92b86befb444664..c882da9cb720402f4802826197ad260636359d76 100644
--- a/chrome/browser/plugins/plugin_prefs.cc
+++ b/chrome/browser/plugins/plugin_prefs.cc
@@ -66,13 +66,6 @@ void PluginPrefs::PluginState::Set(const FilePath& plugin, bool enabled) {
state_[ConvertMapKey(plugin)] = enabled;
}
-void PluginPrefs::PluginState::SetIgnorePseudoKey(const FilePath& plugin,
- bool enabled) {
- FilePath key = ConvertMapKey(plugin);
- if (key == plugin)
- state_[key] = enabled;
-}
-
FilePath PluginPrefs::PluginState::ConvertMapKey(const FilePath& plugin) const {
// Keep the state of component-updated and bundled Pepper Flash in sync.
if (plugin.BaseName().value() == chrome::kPepperFlashPluginFilename) {
@@ -466,7 +459,7 @@ void PluginPrefs::SetPrefs(PrefService* prefs) {
pepper_flash_node = plugin;
}
- plugin_state_.SetIgnorePseudoKey(plugin_path, enabled);
+ plugin_state_.Set(plugin_path, enabled);
} else if (!enabled && plugin->GetString("name", &group_name)) {
// Don't disable this group if it's for the pdf or nacl plugins and
// we just forced it on.
« no previous file with comments | « chrome/browser/plugins/plugin_prefs.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698