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

Unified Diff: chrome/renderer/plugins/power_saver_info.cc

Issue 2356053002: [HBD] Only use Plugin Content Settings for Flash. (Closed)
Patch Set: address xhwang comments Created 4 years, 3 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/common/plugin_utils.cc ('k') | chrome/test/data/load_clearkey_no_js.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/plugins/power_saver_info.cc
diff --git a/chrome/renderer/plugins/power_saver_info.cc b/chrome/renderer/plugins/power_saver_info.cc
index 995b5c965287a1543b4a3b6875f879ef28bd8b9e..0ecfbba94c0381b3e66a7870e793cf4c77a38198 100644
--- a/chrome/renderer/plugins/power_saver_info.cc
+++ b/chrome/renderer/plugins/power_saver_info.cc
@@ -90,8 +90,7 @@ PowerSaverInfo PowerSaverInfo::Get(content::RenderFrame* render_frame,
plugin_info.name == base::ASCIIToUTF16(content::kFlashPluginName);
PowerSaverInfo info;
- bool is_eligible = power_saver_setting_on &&
- (is_flash || override_for_testing == "ignore-list");
+ bool is_eligible = power_saver_setting_on && is_flash;
info.power_saver_enabled = override_for_testing == "always" ||
(power_saver_setting_on && is_eligible);
« no previous file with comments | « chrome/common/plugin_utils.cc ('k') | chrome/test/data/load_clearkey_no_js.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698