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

Issue 19833005: Implement PollingThread for Device Motion. (Closed)

Created:
7 years, 5 months ago by timvolodine
Modified:
7 years, 4 months ago
Reviewers:
bulach, piman
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Implement PollingThread for Device Motion. On some platforms data fetchers are poll-based (e.g. mac), so it requires a polling thread to fetch data. This CL includes: - implementation of a provider for device motion with a polling thread. - unit test for provider - make sure to call Stop* in fetcher destructors only when started. BUG=135804 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=214538

Patch Set 1 #

Total comments: 18

Patch Set 2 : fixed comments #

Patch Set 3 : fixed compilation issues #

Total comments: 6

Patch Set 4 : fixed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+260 lines, -17 lines) Patch
M content/browser/device_orientation/data_fetcher_shared_memory.h View 1 2 3 1 chunk +11 lines, -3 lines 0 comments Download
M content/browser/device_orientation/data_fetcher_shared_memory_android.cc View 1 2 3 2 chunks +6 lines, -2 lines 0 comments Download
M content/browser/device_orientation/data_fetcher_shared_memory_default.cc View 1 2 3 3 chunks +5 lines, -1 line 0 comments Download
M content/browser/device_orientation/device_motion_provider.h View 1 2 chunks +15 lines, -4 lines 0 comments Download
M content/browser/device_orientation/device_motion_provider.cc View 1 3 chunks +124 lines, -7 lines 0 comments Download
A content/browser/device_orientation/device_motion_provider_unittest.cc View 1 2 1 chunk +98 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
timvolodine
7 years, 5 months ago (2013-07-23 15:06:07 UTC) #1
bulach
lgtm, nice! mostly nits below: https://codereview.chromium.org/19833005/diff/1/content/browser/device_orientation/device_motion_provider.cc File content/browser/device_orientation/device_motion_provider.cc (right): https://codereview.chromium.org/19833005/diff/1/content/browser/device_orientation/device_motion_provider.cc#newcode22 content/browser/device_orientation/device_motion_provider.cc:22: PollingThread(const char* name); nit: ...
7 years, 5 months ago (2013-07-24 14:33:27 UTC) #2
timvolodine
thanks for the comments! https://chromiumcodereview.appspot.com/19833005/diff/1/content/browser/device_orientation/device_motion_provider.cc File content/browser/device_orientation/device_motion_provider.cc (right): https://chromiumcodereview.appspot.com/19833005/diff/1/content/browser/device_orientation/device_motion_provider.cc#newcode22 content/browser/device_orientation/device_motion_provider.cc:22: PollingThread(const char* name); On 2013/07/24 ...
7 years, 5 months ago (2013-07-25 16:46:41 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/timvolodine@chromium.org/19833005/12001
7 years, 5 months ago (2013-07-25 19:33:01 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/timvolodine@chromium.org/19833005/12001
7 years, 5 months ago (2013-07-26 01:26:23 UTC) #5
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=17257
7 years, 5 months ago (2013-07-26 06:19:12 UTC) #6
timvolodine
Hi Antoine, need owners approval for content_tests.gypi as well ;)
7 years, 5 months ago (2013-07-26 09:37:48 UTC) #7
piman
LGTM+nits https://chromiumcodereview.appspot.com/19833005/diff/12001/content/browser/device_orientation/data_fetcher_shared_memory.h File content/browser/device_orientation/data_fetcher_shared_memory.h (right): https://chromiumcodereview.appspot.com/19833005/diff/12001/content/browser/device_orientation/data_fetcher_shared_memory.h#newcode17 content/browser/device_orientation/data_fetcher_shared_memory.h:17: class CONTENT_EXPORT DataFetcherSharedMemory { This class is now ...
7 years, 5 months ago (2013-07-26 17:47:48 UTC) #8
timvolodine
https://chromiumcodereview.appspot.com/19833005/diff/12001/content/browser/device_orientation/data_fetcher_shared_memory.h File content/browser/device_orientation/data_fetcher_shared_memory.h (right): https://chromiumcodereview.appspot.com/19833005/diff/12001/content/browser/device_orientation/data_fetcher_shared_memory.h#newcode17 content/browser/device_orientation/data_fetcher_shared_memory.h:17: class CONTENT_EXPORT DataFetcherSharedMemory { On 2013/07/26 17:47:48, piman wrote: ...
7 years, 4 months ago (2013-07-29 12:06:25 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/timvolodine@chromium.org/19833005/33001
7 years, 4 months ago (2013-07-29 12:06:37 UTC) #10
commit-bot: I haz the power
Retried try job too often on win7_aura for step(s) interactive_ui_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win7_aura&number=64588
7 years, 4 months ago (2013-07-29 16:39:09 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/timvolodine@chromium.org/19833005/33001
7 years, 4 months ago (2013-07-30 12:17:48 UTC) #12
commit-bot: I haz the power
7 years, 4 months ago (2013-07-31 03:27:30 UTC) #13
Message was sent while issue was closed.
Change committed as 214538

Powered by Google App Engine
This is Rietveld 408576698