Change AccelerometerReader to a Singleton
commit9d6537c061de117ef7a82d214534798e0d7e1d1b
authorjonross <jonross@chromium.org>
Tue, 13 Jan 2015 22:44:59 +0000 (13 14:44 -0800)
committerCommit bot <commit-bot@chromium.org>
Tue, 13 Jan 2015 22:45:40 +0000 (13 22:45 +0000)
treebf92e5e535cdc2a4081237a9d90851fa3e4f6320
parent15625947d71cacfefca735fe4d4959e1bbbf221f
Change AccelerometerReader to a Singleton

On ChromeOS the accelerometer needs to be read by both ash/ and content/

This change removes the ownership of AccelerometerReader from Shell, changing it into a Singleton.

TEST=Confirmed that a device with an accelerometer enters maximize mode.
BUG=342908

Review URL: https://codereview.chromium.org/822503003

Cr-Commit-Position: refs/heads/master@{#311353}
ash/content/display/screen_orientation_controller_chromeos.cc
ash/shell.cc
ash/shell.h
ash/wm/maximize_mode/maximize_mode_controller.cc
ash/wm/maximize_mode/maximize_mode_controller_unittest.cc
athena/system/orientation_controller.cc
athena/system/orientation_controller.h
chrome/browser/ui/ash/ash_init.cc
chromeos/accelerometer/accelerometer_reader.cc
chromeos/accelerometer/accelerometer_reader.h