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

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

Issue 2350773003: Plugin Power Saver: Fix browsertest in official builds. (Closed)
Patch Set: Created 4 years, 3 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698