Index: ash/shell.cc |
diff --git a/ash/shell.cc b/ash/shell.cc |
index f8e6aab42c74b8832e0de6d10f008c2a2dc29d96..663a8e643d80bc2d625c3ac58c102cb5141a6cf2 100644 |
--- a/ash/shell.cc |
+++ b/ash/shell.cc |
@@ -121,6 +121,7 @@ |
#include "ui/gfx/x/x11_types.h" |
#endif // defined(USE_X11) |
#include "ash/ash_constants.h" |
+#include "ash/content/accelerometer/sensor_manager_delegate_chromeos.h" |
#include "ash/content/display/screen_orientation_delegate_chromeos.h" |
#include "ash/display/display_change_observer_chromeos.h" |
#include "ash/display/display_configurator_animation.h" |
@@ -817,6 +818,8 @@ Shell::~Shell() { |
display_configurator_->RemoveObserver(projecting_observer_.get()); |
display_change_observer_.reset(); |
+ sensor_manager_delegate_.reset(); |
+ |
PowerStatus::Shutdown(); |
// Ensure that DBusThreadManager outlives this Shell. |
@@ -1061,6 +1064,7 @@ void Shell::Init(const ShellInitParams& init_params) { |
new VideoActivityNotifier(video_detector_.get())); |
bluetooth_notification_controller_.reset(new BluetoothNotificationController); |
last_window_closed_logout_reminder_.reset(new LastWindowClosedLogoutReminder); |
+ sensor_manager_delegate_.reset(new SensorManagerDelegateChromeOS); |
screen_orientation_delegate_.reset(new ScreenOrientationDelegate()); |
#endif |
// The compositor thread and main message loop have to be running in |