Commit 001afe87 authored by Raphael Kubo da Costa's avatar Raphael Kubo da Costa Committed by Chromium LUCI CQ

sensors: Remove outdated comment from SensorProxyImpl::ReportError().

The comment about passing parameters by value was added in
r429564 ("[sensors] Close mock sensor stubs after test is finished") but
was made obsolete by r450741 ("[Sensors] Fix error type and message
used").

Change-Id: Ic8c07ce6d2f0b481a64dd706339761eca5d6323e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2631503
Auto-Submit: Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com>
Commit-Queue: Reilly Grant <reillyg@chromium.org>
Reviewed-by: default avatarReilly Grant <reillyg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#845053}
parent 11db8848
......@@ -138,8 +138,6 @@ void SensorProxyImpl::ReportError(DOMExceptionCode code,
reading_ = device::SensorReading();
UpdatePollingStatus();
// The m_sensor.reset() will release all callbacks and its bound parameters,
// therefore, handleSensorError accepts messages by value.
sensor_remote_.reset();
shared_buffer_reader_.reset();
default_frequency_ = 0.0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment