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

Issue 3136008: Implement device_orientation::Provider. (Closed)

Created:
10 years, 4 months ago by hans
Modified:
9 years, 5 months ago
CC:
chromium-reviews, ben+cc_chromium.org, Satish, Leandro Gracia Gil, Paweł Hajdan Jr.
Visibility:
Public.

Description

Implement device_orientation::Provider. Provider provides its registered observers with device orientation data by finding and polling a DataFetcher on a background thread. BUG=44654 TEST=unit_tests --gtest_filter="DeviceOrientationProviderTest.*" Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=57036

Patch Set 1 #

Total comments: 38

Patch Set 2 : Patch #

Patch Set 3 : Patch #

Total comments: 34

Patch Set 4 : Patch #

Total comments: 20

Patch Set 5 : Patch #

Total comments: 6

Patch Set 6 : Patch #

Unified diffs Side-by-side diffs Delta from patch set Stats (+701 lines, -8 lines) Patch
A chrome/browser/device_orientation/data_fetcher.h View 1 2 3 4 1 chunk +21 lines, -0 lines 0 comments Download
M chrome/browser/device_orientation/orientation.h View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/device_orientation/provider.h View 1 2 3 4 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/device_orientation/provider.cc View 1 chunk +11 lines, -4 lines 0 comments Download
A chrome/browser/device_orientation/provider_impl.h View 1 2 3 4 1 chunk +87 lines, -0 lines 0 comments Download
A chrome/browser/device_orientation/provider_impl.cc View 1 2 3 4 1 chunk +199 lines, -0 lines 0 comments Download
A chrome/browser/device_orientation/provider_unittest.cc View 1 2 3 4 5 1 chunk +369 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
hans
Sorry for the huge amount of code in the unit test; suggestions for simplifications are ...
10 years, 4 months ago (2010-08-12 16:13:02 UTC) #1
joth
couple quick thoughts.... http://codereview.chromium.org/3136008/diff/1/7 File chrome/browser/device_orientation/provider_impl.h (right): http://codereview.chromium.org/3136008/diff/1/7#newcode70 chrome/browser/device_orientation/provider_impl.h:70: you can move all these class ...
10 years, 4 months ago (2010-08-12 17:33:04 UTC) #2
bulach
few drive-by comments, apologies if I misunderstood the threading model.. I think it may be ...
10 years, 4 months ago (2010-08-12 18:04:23 UTC) #3
Paweł Hajdan Jr.
Drive-by with test comments. Please do not commit without my "LGTM". http://codereview.chromium.org/3136008/diff/1/8 File chrome/browser/device_orientation/provider_unittest.cc (right): ...
10 years, 4 months ago (2010-08-12 20:53:57 UTC) #4
hans
Thank you very much for the input so far. Addressing your comments and uploading new ...
10 years, 4 months ago (2010-08-16 12:49:34 UTC) #5
hans
After discussing with joth, updated ProviderImpl to use NewRunnableMethod for creating Task objects rather than ...
10 years, 4 months ago (2010-08-16 15:14:32 UTC) #6
bulach
cool! I have a few minor comments / suggestions, and while I'm trying to get ...
10 years, 4 months ago (2010-08-16 17:01:35 UTC) #7
Paweł Hajdan Jr.
Looks better now. A general comment: can we extract some of those waiting utilities to ...
10 years, 4 months ago (2010-08-16 18:31:37 UTC) #8
hans
Refactored the test code to run the message loop manually, as suggested by joth and ...
10 years, 4 months ago (2010-08-17 17:02:35 UTC) #9
bulach
nice, looks much easier to read now, thanks!! few more comments, I think we can ...
10 years, 4 months ago (2010-08-17 18:04:49 UTC) #10
bulach
nice, looks much easier to read now, thanks!! few more comments, I think we can ...
10 years, 4 months ago (2010-08-17 18:04:49 UTC) #11
Paweł Hajdan Jr.
Just one minor comment. http://codereview.chromium.org/3136008/diff/21001/22007 File chrome/browser/device_orientation/provider_unittest.cc (right): http://codereview.chromium.org/3136008/diff/21001/22007#newcode29 chrome/browser/device_orientation/provider_unittest.cc:29: EXPECT_FALSE(expectations_queue_.empty()); This should actually be ...
10 years, 4 months ago (2010-08-17 18:27:02 UTC) #12
hans
Uploaded new patch. Trying to accommodate bulach's suggestions for reducing the need to synchronize with ...
10 years, 4 months ago (2010-08-18 13:56:50 UTC) #13
bulach
LGTM very nice!! many thanks for taking care of my comments, really appreciate.. ;) just ...
10 years, 4 months ago (2010-08-18 14:09:49 UTC) #14
hans
Cool. Will land this once it's spent some time on the try bots, and Paweł ...
10 years, 4 months ago (2010-08-18 15:23:10 UTC) #15
Paweł Hajdan Jr.
10 years, 4 months ago (2010-08-18 17:55:47 UTC) #16
LGTM

Powered by Google App Engine
This is Rietveld 408576698