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

Issue 822503003: Change AccelerometerReader to a Singleton (Closed)

Created:
5 years, 11 months ago by jonross
Modified:
5 years, 11 months ago
Reviewers:
oshima
CC:
chromium-reviews, kalyank, stevenjb+watch_chromium.org, sadrul, oshima+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

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 Committed: https://crrev.com/9d6537c061de117ef7a82d214534798e0d7e1d1b Cr-Commit-Position: refs/heads/master@{#311353}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Change to normal singleton #

Patch Set 3 : Fix athena compile #

Patch Set 4 : Rebase #

Patch Set 5 : Update new dependency #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -37 lines) Patch
M ash/content/display/screen_orientation_controller_chromeos.cc View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M ash/shell.h View 1 2 3 3 chunks +0 lines, -11 lines 0 comments Download
M ash/shell.cc View 1 2 3 2 chunks +0 lines, -2 lines 0 comments Download
M ash/wm/maximize_mode/maximize_mode_controller.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M ash/wm/maximize_mode/maximize_mode_controller_unittest.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M athena/system/orientation_controller.h View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M athena/system/orientation_controller.cc View 1 2 2 chunks +5 lines, -6 lines 0 comments Download
M chrome/browser/ui/ash/ash_init.cc View 1 chunk +1 line, -1 line 0 comments Download
M chromeos/accelerometer/accelerometer_reader.h View 1 2 3 4 3 chunks +10 lines, -2 lines 0 comments Download
M chromeos/accelerometer/accelerometer_reader.cc View 1 2 3 3 chunks +12 lines, -6 lines 0 comments Download

Messages

Total messages: 14 (4 generated)
jonross
Hi Oshima, Could you provide a review for this change? On Chrome OS there is ...
5 years, 11 months ago (2015-01-07 15:34:07 UTC) #2
oshima
https://codereview.chromium.org/822503003/diff/1/chromeos/accelerometer/accelerometer_reader.cc File chromeos/accelerometer/accelerometer_reader.cc (right): https://codereview.chromium.org/822503003/diff/1/chromeos/accelerometer/accelerometer_reader.cc#newcode190 chromeos/accelerometer/accelerometer_reader.cc:190: LeakySingletonTraits<AccelerometerReader>>::get(); why this needs to be leaky?
5 years, 11 months ago (2015-01-07 16:39:57 UTC) #3
jonross
On 2015/01/07 16:39:57, oshima wrote: > https://codereview.chromium.org/822503003/diff/1/chromeos/accelerometer/accelerometer_reader.cc > File chromeos/accelerometer/accelerometer_reader.cc (right): > > https://codereview.chromium.org/822503003/diff/1/chromeos/accelerometer/accelerometer_reader.cc#newcode190 > ...
5 years, 11 months ago (2015-01-07 19:54:52 UTC) #4
jonross
https://codereview.chromium.org/822503003/diff/1/chromeos/accelerometer/accelerometer_reader.cc File chromeos/accelerometer/accelerometer_reader.cc (right): https://codereview.chromium.org/822503003/diff/1/chromeos/accelerometer/accelerometer_reader.cc#newcode190 chromeos/accelerometer/accelerometer_reader.cc:190: LeakySingletonTraits<AccelerometerReader>>::get(); On 2015/01/07 16:39:57, oshima wrote: > why this ...
5 years, 11 months ago (2015-01-12 15:15:46 UTC) #5
oshima
lgtm
5 years, 11 months ago (2015-01-12 22:56:38 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/822503003/20001
5 years, 11 months ago (2015-01-13 01:28:00 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/14134)
5 years, 11 months ago (2015-01-13 02:10:05 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/822503003/80001
5 years, 11 months ago (2015-01-13 21:48:54 UTC) #12
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 11 months ago (2015-01-13 22:45:29 UTC) #13
commit-bot: I haz the power
5 years, 11 months ago (2015-01-13 22:46:32 UTC) #14
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/9d6537c061de117ef7a82d214534798e0d7e1d1b
Cr-Commit-Position: refs/heads/master@{#311353}

Powered by Google App Engine
This is Rietveld 408576698