Chromium Code Reviews| 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 b413e7985317a7a3cf4cbdba4173feba054c17cc..d6f92bd6be216893ff686239a59b319716ea9b49 100644 |
| --- a/chrome/browser/plugins/plugin_power_saver_browsertest.cc |
| +++ b/chrome/browser/plugins/plugin_power_saver_browsertest.cc |
| @@ -289,6 +289,10 @@ class PluginPowerSaverBrowserTest : public InProcessBrowserTest { |
| command_line->AppendSwitch(switches::kDisableGpu); |
| } |
| + void SetUpInProcessBrowserTestFixture() override { |
| + feature_list.InitAndEnableFeature(features::kBlockSmallContent); |
|
Nico
2016/09/19 22:44:42
maybe add a comment for why this is needed
tommycli
2016/09/19 23:10:07
Done.
|
| + } |
| + |
| protected: |
| void LoadHTML(const std::string& html) { |
| if (PixelTestsEnabled()) { |
| @@ -403,6 +407,9 @@ class PluginPowerSaverBrowserTest : public InProcessBrowserTest { |
| return true; |
| #endif |
| } |
| + |
| + private: |
| + base::test::ScopedFeatureList feature_list; |
| }; |
| IN_PROC_BROWSER_TEST_F(PluginPowerSaverBrowserTest, EssentialPlugins) { |