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

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

Issue 796543002: Plugin Power Saver: Implement option in Settings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: restore 'ask' to list of allowed settings for policy settings Created 6 years 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_unittest.cc
diff --git a/chrome/browser/plugins/plugin_info_message_filter_unittest.cc b/chrome/browser/plugins/plugin_info_message_filter_unittest.cc
index 7d53aca4b6995f058f1b84a2ac4c98e3dacb4617..59bd2ba2f1f55aa8a3a94701161db1f131c92097 100644
--- a/chrome/browser/plugins/plugin_info_message_filter_unittest.cc
+++ b/chrome/browser/plugins/plugin_info_message_filter_unittest.cc
@@ -216,14 +216,12 @@ TEST_F(PluginInfoMessageFilterTest, GetPluginContentSetting) {
map->SetDefaultContentSetting(CONTENT_SETTINGS_TYPE_PLUGINS,
CONTENT_SETTING_BLOCK);
- // Set plugins to click-to-play on example.com and subdomains.
+ // Set plugins to Plugin Power Saver on example.com and subdomains.
ContentSettingsPattern pattern =
ContentSettingsPattern::FromString("[*.]example.com");
- map->SetContentSetting(pattern,
- ContentSettingsPattern::Wildcard(),
- CONTENT_SETTINGS_TYPE_PLUGINS,
- std::string(),
- CONTENT_SETTING_ASK);
+ map->SetContentSetting(pattern, ContentSettingsPattern::Wildcard(),
+ CONTENT_SETTINGS_TYPE_PLUGINS, std::string(),
+ CONTENT_SETTING_DETECT_IMPORTANT_CONTENT);
// Allow plugin "foo" on all sites.
map->SetContentSetting(ContentSettingsPattern::Wildcard(),
@@ -237,8 +235,9 @@ TEST_F(PluginInfoMessageFilterTest, GetPluginContentSetting) {
ASSERT_EQ(CONTENT_SETTING_BLOCK, map->GetContentSetting(
unmatched_host, unmatched_host, CONTENT_SETTINGS_TYPE_PLUGINS,
std::string()));
- ASSERT_EQ(CONTENT_SETTING_ASK, map->GetContentSetting(
- host, host, CONTENT_SETTINGS_TYPE_PLUGINS, std::string()));
+ ASSERT_EQ(CONTENT_SETTING_DETECT_IMPORTANT_CONTENT,
+ map->GetContentSetting(host, host, CONTENT_SETTINGS_TYPE_PLUGINS,
+ std::string()));
ASSERT_EQ(CONTENT_SETTING_ALLOW, map->GetContentSetting(
host, host, CONTENT_SETTINGS_TYPE_PLUGINS, "foo"));
ASSERT_EQ(CONTENT_SETTING_DEFAULT, map->GetContentSetting(
@@ -249,7 +248,8 @@ TEST_F(PluginInfoMessageFilterTest, GetPluginContentSetting) {
// There is no specific content setting for "bar", so the general setting
// for example.com applies.
- VerifyPluginContentSetting(host, "bar", CONTENT_SETTING_ASK, false, false);
+ VerifyPluginContentSetting(
+ host, "bar", CONTENT_SETTING_DETECT_IMPORTANT_CONTENT, false, false);
// Otherwise, use the default.
VerifyPluginContentSetting(unmatched_host, "bar", CONTENT_SETTING_BLOCK,

Powered by Google App Engine
This is Rietveld 408576698