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

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

Issue 2841843002: Remove the enable flag from all plugins after the option has been ported. (Closed)
Patch Set: Refactor. Created 3 years, 8 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 | « no previous file | 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 0c418d1cdd0cbc649bcdff0d001ad39740ade5db..4dcae31beafe32a0c5e3b3f4003cfc8805306cfd 100644
--- a/chrome/browser/plugins/plugin_prefs.cc
+++ b/chrome/browser/plugins/plugin_prefs.cc
@@ -136,9 +136,9 @@ void PluginPrefs::SetPrefs(PrefService* prefs) {
continue; // Oops, don't know what to do with this item.
}
- bool enabled;
- if (!plugin->GetBoolean("enabled", &enabled))
- enabled = true;
+ bool enabled = true;
+ if (plugin->GetBoolean("enabled", &enabled))
+ plugin->Remove("enabled", nullptr);
// Migrate disabled plugins and re-enable them all internally.
// TODO(http://crbug.com/662006): Remove migration eventually.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698