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

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: 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..3db8f658935cff4e213e602a0e6f5ace025f3163 100644
--- a/chrome/browser/plugins/plugin_prefs.cc
+++ b/chrome/browser/plugins/plugin_prefs.cc
@@ -139,6 +139,8 @@ void PluginPrefs::SetPrefs(PrefService* prefs) {
bool enabled;
Bernhard Bauer 2017/04/25 14:15:37 I would simplify this to: bool enabled = true;
pastarmovj 2017/04/26 07:26:38 Done.
if (!plugin->GetBoolean("enabled", &enabled))
enabled = true;
+ else
+ 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