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

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

Issue 2373893002: [HBD] Enable Plugin Power Saver on ALLOW for HBD feature flag on. (Closed)
Patch Set: refactor 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 | « no previous file | chrome/browser/plugins/plugin_power_saver_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/plugins/plugin_info_message_filter.cc
diff --git a/chrome/browser/plugins/plugin_info_message_filter.cc b/chrome/browser/plugins/plugin_info_message_filter.cc
index b1ea5b4190e5a48fe46a6b25175f27e3b463d0c3..b8cc37ac9de78d0a2b2f2b67da1187f76308789e 100644
--- a/chrome/browser/plugins/plugin_info_message_filter.cc
+++ b/chrome/browser/plugins/plugin_info_message_filter.cc
@@ -365,7 +365,9 @@ void PluginInfoMessageFilter::Context::DecidePluginStatus(
}
#endif // defined(ENABLE_EXTENSIONS)
- if (plugin_setting == CONTENT_SETTING_DETECT_IMPORTANT_CONTENT) {
+ if (plugin_setting == CONTENT_SETTING_DETECT_IMPORTANT_CONTENT ||
+ (plugin_setting == CONTENT_SETTING_ALLOW &&
+ base::FeatureList::IsEnabled(features::kPreferHtmlOverPlugins))) {
*status = ChromeViewHostMsg_GetPluginInfo_Status::kPlayImportantContent;
} else if (plugin_setting == CONTENT_SETTING_BLOCK) {
// For managed users with the ASK policy, we allow manually running plugins
« no previous file with comments | « no previous file | chrome/browser/plugins/plugin_power_saver_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698