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

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

Issue 2391823003: [HBD] Hardcode SEI threshold to 30 (for testers) (Closed)
Patch Set: fix one more test Created 4 years, 2 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_power_saver_browsertest.cc
diff --git a/chrome/browser/plugins/plugin_power_saver_browsertest.cc b/chrome/browser/plugins/plugin_power_saver_browsertest.cc
index 8d688f1a9266d805cdb78d13f4927ca0c805e3f2..9fa28e0182653f4dd1e62e0b591edcd47a1af35e 100644
--- a/chrome/browser/plugins/plugin_power_saver_browsertest.cc
+++ b/chrome/browser/plugins/plugin_power_saver_browsertest.cc
@@ -740,8 +740,8 @@ class PluginPowerSaverAllowTinyBrowserTest
: public PluginPowerSaverBrowserTest {
public:
void SetUpInProcessBrowserTestFixture() override {
- PluginPowerSaverBrowserTest::SetUpInProcessBrowserTestFixture();
- feature_list.InitAndDisableFeature(features::kBlockSmallContent);
+ feature_list.InitWithFeatures(
+ {}, {features::kPreferHtmlOverPlugins, features::kBlockSmallContent});
}
private:
@@ -767,8 +767,10 @@ class PluginPowerSaverPreferHtmlBrowserTest
: public PluginPowerSaverBrowserTest {
public:
void SetUpInProcessBrowserTestFixture() override {
- PluginPowerSaverBrowserTest::SetUpInProcessBrowserTestFixture();
- feature_list.InitAndEnableFeature(features::kPreferHtmlOverPlugins);
+ // Although these are redundant with the Field Trial testing configuration,
+ // the official builders don't use those, so enable them here.
+ feature_list.InitWithFeatures(
+ {features::kBlockSmallContent, features::kPreferHtmlOverPlugins}, {});
}
private:

Powered by Google App Engine
This is Rietveld 408576698