• jonross's avatar
    Change AccelerometerReader to a Singleton · 9d6537c0
    jonross authored
    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}
    9d6537c0
screen_orientation_controller_chromeos.cc 12.7 KB