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

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

Issue 1033103002: Plugin Power Saver: Overhaul plugin-power-saver flags. Show in UI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix gypi i hope Created 5 years, 9 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
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 bb2c2cd0c72dbe20f27134ae996ba06bee85e508..a0ae3090976c5bbb160bc9417db07d316e29f128 100644
--- a/chrome/browser/plugins/plugin_info_message_filter.cc
+++ b/chrome/browser/plugins/plugin_info_message_filter.cc
@@ -22,6 +22,7 @@
#include "components/content_settings/core/browser/content_settings_utils.h"
#include "components/content_settings/core/browser/host_content_settings_map.h"
#include "components/content_settings/core/common/content_settings.h"
+#include "components/plugins/common/plugins_field_trial.h"
#include "components/rappor/rappor_service.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/plugin_service.h"
@@ -416,7 +417,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 &&
+ PluginsFieldTrial::EnableForcePluginPowerSaver())) {
status->value =
ChromeViewHostMsg_GetPluginInfo_Status::kPlayImportantContent;
} else if (plugin_setting == CONTENT_SETTING_BLOCK ||

Powered by Google App Engine
This is Rietveld 408576698