Index: ash/shell.cc |
diff --git a/ash/shell.cc b/ash/shell.cc |
index 95ff72cdd9d0856f213b238fca34bf6d78809a86..65c1c04229921921c4f57ac20c757d0fdad4ee25 100644 |
--- a/ash/shell.cc |
+++ b/ash/shell.cc |
@@ -74,6 +74,7 @@ |
#include "ash/system/locale/locale_notification_controller.h" |
#include "ash/system/network/sms_observer.h" |
#include "ash/system/network/vpn_list.h" |
+#include "ash/system/night_light/night_light_controller.h" |
#include "ash/system/power/power_event_observer.h" |
#include "ash/system/power/power_status.h" |
#include "ash/system/power/video_activity_notifier.h" |
@@ -319,6 +320,11 @@ bool Shell::ShouldUseIMEService() { |
switches::kUseIMEService)); |
} |
+// static |
+void Shell::RegisterPrefs(PrefRegistrySimple* registry) { |
+ NightLightController::RegisterPrefs(registry); |
+} |
+ |
views::NonClientFrameView* Shell::CreateDefaultNonClientFrameView( |
views::Widget* widget) { |
// Use translucent-style window frames for dialogs. |
@@ -562,6 +568,8 @@ Shell::Shell(std::unique_ptr<ShellDelegate> shell_delegate, |
media_controller_(base::MakeUnique<MediaController>()), |
new_window_controller_(base::MakeUnique<NewWindowController>()), |
session_controller_(base::MakeUnique<SessionController>()), |
+ night_light_controller_( |
+ base::MakeUnique<NightLightController>(session_controller_.get())), |
shelf_controller_(base::MakeUnique<ShelfController>()), |
shell_delegate_(std::move(shell_delegate)), |
shutdown_controller_(base::MakeUnique<ShutdownController>()), |