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

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

Issue 12316081: Revert 180288 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 10 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 33f218b9c22bab5e14b171644eb26c6d8a5edee3..53ccefd2121b4ab4be2006f24e129cb12a9ad181 100644
--- a/chrome/browser/plugins/plugin_prefs.cc
+++ b/chrome/browser/plugins/plugin_prefs.cc
@@ -66,6 +66,13 @@ void PluginPrefs::PluginState::Set(const base::FilePath& plugin, bool enabled) {
state_[ConvertMapKey(plugin)] = enabled;
}
+void PluginPrefs::PluginState::SetIgnorePseudoKey(const base::FilePath& plugin,
+ bool enabled) {
+ base::FilePath key = ConvertMapKey(plugin);
+ if (key == plugin)
+ state_[key] = enabled;
+}
+
base::FilePath PluginPrefs::PluginState::ConvertMapKey(
const base::FilePath& plugin) const {
// Keep the state of component-updated and bundled Pepper Flash in sync.
@@ -463,7 +470,7 @@ void PluginPrefs::SetPrefs(PrefService* prefs) {
pepper_flash_node = plugin;
}
- plugin_state_.Set(plugin_path, enabled);
+ plugin_state_.SetIgnorePseudoKey(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