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

Issue 2839963004: [Sensors] Error handler in Senor class should stop the platform sensor (Closed)

Created:
3 years, 8 months ago by Mikhail
Modified:
3 years, 7 months ago
CC:
chromium-reviews, haraken, blink-reviews, wanming.lin, shalamov, Mikhail
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Sensors] Error handler in Senor class should stop the platform sensor At the moment SensorProxy is the only source of error notification for the Sensor class instances, however soon other error notification sources will turn up (e.g. permission subsystem), so we must guarantee that stopping of a Sensor due to an error is reflected on platform side. BUG=606766 Review-Url: https://codereview.chromium.org/2839963004 Cr-Commit-Position: refs/heads/master@{#467709} Committed: https://chromium.googlesource.com/chromium/src/+/e2d622806d0648f17eac947bd9d77b29211ccc2f

Patch Set 1 #

Patch Set 2 : Added layout test #

Total comments: 10

Patch Set 3 : Comments from Reilly #

Patch Set 4 : fix test failures #

Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -77 lines) Patch
D third_party/WebKit/LayoutTests/platform/win/sensor/magnetometer-expected.txt View 1 2 3 1 chunk +0 lines, -19 lines 0 comments Download
M third_party/WebKit/LayoutTests/sensor/resources/generic-sensor-tests.js View 1 2 1 chunk +24 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/sensor/Sensor.h View 1 chunk +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/sensor/Sensor.cpp View 1 2 3 chunks +51 lines, -54 lines 0 comments Download
M third_party/WebKit/Source/modules/sensor/SensorProxy.cpp View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 27 (20 generated)
Mikhail
PTAL
3 years, 8 months ago (2017-04-26 07:40:01 UTC) #7
shalamov
lgtm
3 years, 8 months ago (2017-04-26 12:00:14 UTC) #10
Reilly Grant (use Gerrit)
My comments are mostly nits but it looks like there is a test failure to ...
3 years, 8 months ago (2017-04-26 14:58:45 UTC) #13
Mikhail
Thanks for review! https://codereview.chromium.org/2839963004/diff/20001/third_party/WebKit/LayoutTests/sensor/resources/generic-sensor-tests.js File third_party/WebKit/LayoutTests/sensor/resources/generic-sensor-tests.js (right): https://codereview.chromium.org/2839963004/diff/20001/third_party/WebKit/LayoutTests/sensor/resources/generic-sensor-tests.js#newcode74 third_party/WebKit/LayoutTests/sensor/resources/generic-sensor-tests.js:74: .then(mockSensor => { return mockSensor.addConfigurationCalled(); }) ...
3 years, 7 months ago (2017-04-27 07:50:34 UTC) #18
Reilly Grant (use Gerrit)
lgtm
3 years, 7 months ago (2017-04-27 15:40:16 UTC) #21
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/2839963004/60001
3 years, 7 months ago (2017-04-27 16:16:35 UTC) #24
commit-bot: I haz the power
3 years, 7 months ago (2017-04-27 16:44:24 UTC) #27
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/e2d622806d0648f17eac947bd9d7...

Powered by Google App Engine
This is Rietveld 408576698