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

Issue 2495073002: [sensors] [win] Fix ambient light not working properly Windows 10. (Closed)

Created:
4 years, 1 month ago by darktears
Modified:
4 years ago
Reviewers:
timvolodine, Reilly Grant (use Gerrit), shalamov, Mikhail
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[sensors] [win] Fix ambient light not working properly on Windows 10. The event listener was never called despite SetEventSink returning success. Debbuging further it turns out that the event listener was created in the sensor thread, however the listener was not set in the sensor thread (from StartSensor()), this seems to confuse COM. BUG=606766 Committed: https://crrev.com/26947f590d1526ea0cf3d485382da6dc1a068ec5 Cr-Commit-Position: refs/heads/master@{#435513}

Patch Set 1 #

Patch Set 2 : Fix unit tests #

Total comments: 2

Patch Set 3 : Fix Alex comments #

Total comments: 1

Patch Set 4 : Fix mikhail comments #

Patch Set 5 : Fix test failures #

Total comments: 1

Patch Set 6 : Fix typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -20 lines) Patch
M device/generic_sensor/platform_sensor_and_provider_unittest_win.cc View 1 2 3 4 5 11 chunks +34 lines, -8 lines 0 comments Download
M device/generic_sensor/platform_sensor_reader_win.h View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M device/generic_sensor/platform_sensor_reader_win.cc View 1 2 3 2 chunks +13 lines, -12 lines 0 comments Download

Messages

Total messages: 48 (31 generated)
darktears
PTAL
4 years, 1 month ago (2016-11-11 22:52:53 UTC) #4
shalamov
https://codereview.chromium.org/2495073002/diff/20001/device/generic_sensor/platform_sensor_reader_win.cc File device/generic_sensor/platform_sensor_reader_win.cc (right): https://codereview.chromium.org/2495073002/diff/20001/device/generic_sensor/platform_sensor_reader_win.cc#newcode287 device/generic_sensor/platform_sensor_reader_win.cc:287: base::AutoLock autolock(lock_); If it is accessed only on sensor ...
4 years, 1 month ago (2016-11-15 07:31:19 UTC) #12
darktears
On 2016/11/15 at 07:31:19, alexander.shalamov wrote: > https://codereview.chromium.org/2495073002/diff/20001/device/generic_sensor/platform_sensor_reader_win.cc > File device/generic_sensor/platform_sensor_reader_win.cc (right): > > https://codereview.chromium.org/2495073002/diff/20001/device/generic_sensor/platform_sensor_reader_win.cc#newcode287 ...
4 years, 1 month ago (2016-11-15 16:55:47 UTC) #15
shalamov
lgtm
4 years, 1 month ago (2016-11-15 19:11:40 UTC) #18
Mikhail
https://codereview.chromium.org/2495073002/diff/40001/device/generic_sensor/platform_sensor_reader_win.cc File device/generic_sensor/platform_sensor_reader_win.cc (right): https://codereview.chromium.org/2495073002/diff/40001/device/generic_sensor/platform_sensor_reader_win.cc#newcode288 device/generic_sensor/platform_sensor_reader_win.cc:288: event_listener_->AddRef(); why is that needed?
4 years, 1 month ago (2016-11-21 11:17:40 UTC) #20
darktears
On 2016/11/21 at 11:17:40, mikhail.pozdnyakov wrote: > https://codereview.chromium.org/2495073002/diff/40001/device/generic_sensor/platform_sensor_reader_win.cc > File device/generic_sensor/platform_sensor_reader_win.cc (right): > > https://codereview.chromium.org/2495073002/diff/40001/device/generic_sensor/platform_sensor_reader_win.cc#newcode288 ...
4 years ago (2016-11-22 18:30:34 UTC) #21
shalamov
On 2016/11/22 18:30:34, darktears wrote: > On 2016/11/21 at 11:17:40, mikhail.pozdnyakov wrote: > > > ...
4 years ago (2016-11-23 07:57:15 UTC) #22
Reilly Grant (use Gerrit)
This change makes sense to me but look at the failing test on the win_chromium_x64_rel_ng ...
4 years ago (2016-11-23 18:54:05 UTC) #27
darktears
On 2016/11/23 at 18:54:05, reillyg wrote: > This change makes sense to me but look ...
4 years ago (2016-11-23 20:23:50 UTC) #28
darktears
On 2016/11/29 at 00:22:05, commit-bot wrote: > Dry run: CQ is trying da patch. Follow ...
4 years ago (2016-11-29 01:16:43 UTC) #31
Mikhail
lgtm
4 years ago (2016-11-29 05:59:25 UTC) #34
Reilly Grant (use Gerrit)
https://codereview.chromium.org/2495073002/diff/80001/device/generic_sensor/platform_sensor_and_provider_unittest_win.cc File device/generic_sensor/platform_sensor_and_provider_unittest_win.cc (right): https://codereview.chromium.org/2495073002/diff/80001/device/generic_sensor/platform_sensor_and_provider_unittest_win.cc#newcode483 device/generic_sensor/platform_sensor_and_provider_unittest_win.cc:483: EXPECT_TRUE(sensor->StartListening(client.get(), configuration)); StopListening became StartListening here.
4 years ago (2016-11-29 16:06:57 UTC) #35
darktears
On 2016/11/29 at 16:06:57, reillyg wrote: > https://codereview.chromium.org/2495073002/diff/80001/device/generic_sensor/platform_sensor_and_provider_unittest_win.cc > File device/generic_sensor/platform_sensor_and_provider_unittest_win.cc (right): > > https://codereview.chromium.org/2495073002/diff/80001/device/generic_sensor/platform_sensor_and_provider_unittest_win.cc#newcode483 ...
4 years ago (2016-11-29 22:38:56 UTC) #40
Reilly Grant (use Gerrit)
lgtm
4 years ago (2016-11-29 22:52:46 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2495073002/100001
4 years ago (2016-12-01 00:22:28 UTC) #44
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years ago (2016-12-01 01:16:05 UTC) #46
commit-bot: I haz the power
4 years ago (2016-12-01 01:21:09 UTC) #48
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/26947f590d1526ea0cf3d485382da6dc1a068ec5
Cr-Commit-Position: refs/heads/master@{#435513}

Powered by Google App Engine
This is Rietveld 408576698