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

Unified Diff: ash/system/night_light/night_light_controller_unittest.cc

Issue 2921973002: Hide Night Light behind a flag (Closed)
Patch Set: Created 3 years, 7 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: ash/system/night_light/night_light_controller_unittest.cc
diff --git a/ash/system/night_light/night_light_controller_unittest.cc b/ash/system/night_light/night_light_controller_unittest.cc
index 175a01dcc88322f1c384b37df5b7323aafd23943..d0c48df67926aa3d6c168088a6ba12a98150bccd 100644
--- a/ash/system/night_light/night_light_controller_unittest.cc
+++ b/ash/system/night_light/night_light_controller_unittest.cc
@@ -76,6 +76,9 @@ class NightLightTest : public test::AshTestBase {
// ash::test::AshTestBase:
void SetUp() override {
+ // Explicitly enable the NightLight feature for the tests.
+ NightLightController::EnableFeatureForTesting();
+
test::AshTestBase::SetUp();
CreateTestUserSessions();
Shell::RegisterPrefs(user1_pref_service_.registry());

Powered by Google App Engine
This is Rietveld 408576698