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

Unified Diff: ash/shell.cc

Issue 680383007: DeviceOrientation API on ChromeOS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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/shell.cc
diff --git a/ash/shell.cc b/ash/shell.cc
index 9de2e1581e2b3cb1c284339fabaef84059a639fa..177c5834f48852ff85a8825fd299759827a8b2bc 100644
--- a/ash/shell.cc
+++ b/ash/shell.cc
@@ -120,6 +120,7 @@
#include "ash/accelerators/spoken_feedback_toggler.h"
#include "ui/gfx/x/x11_types.h"
#endif // defined(USE_X11)
+#include "ash/accelerometer/sensor_manager_delegate.h"
#include "ash/ash_constants.h"
#include "ash/display/display_change_observer_chromeos.h"
#include "ash/display/display_configurator_animation.h"
@@ -816,6 +817,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.
@@ -1060,6 +1063,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 SensorManagerDelegate);
#endif
weak_display_manager_factory_.reset(

Powered by Google App Engine
This is Rietveld 408576698