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

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

Issue 916073004: Plugin Power Saver: Migrate ASK to BLOCK. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « no previous file | chrome/browser/ui/website_settings/permission_menu_model.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 d60f53b3e2fbe07f7487f67d4a5202ea9400cd7b..065b2519c42894a0149589029597a794c19e482a 100644
--- a/chrome/browser/plugins/plugin_info_message_filter.cc
+++ b/chrome/browser/plugins/plugin_info_message_filter.cc
@@ -415,11 +415,11 @@ void PluginInfoMessageFilter::Context::DecidePluginStatus(
}
#endif // defined(ENABLE_EXTENSIONS)
- if (plugin_setting == CONTENT_SETTING_DETECT_IMPORTANT_CONTENT ||
- plugin_setting == CONTENT_SETTING_ASK) {
+ if (plugin_setting == CONTENT_SETTING_DETECT_IMPORTANT_CONTENT) {
status->value =
ChromeViewHostMsg_GetPluginInfo_Status::kPlayImportantContent;
- } else if (plugin_setting == CONTENT_SETTING_BLOCK) {
+ } else if (plugin_setting == CONTENT_SETTING_BLOCK ||
+ plugin_setting == CONTENT_SETTING_ASK) {
status->value =
is_managed ? ChromeViewHostMsg_GetPluginInfo_Status::kBlockedByPolicy
: ChromeViewHostMsg_GetPluginInfo_Status::kBlocked;
« no previous file with comments | « no previous file | chrome/browser/ui/website_settings/permission_menu_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698