Fix the indirect pure virtual calls in DataFetcherSharedMemoryBase destructor.
commit694cd937163f3eb45a2e52dd7da7899c2c9db146
authortimvolodine <timvolodine@chromium.org>
Thu, 18 Sep 2014 12:09:54 +0000 (18 05:09 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 18 Sep 2014 12:10:10 +0000 (18 12:10 +0000)
tree62b5dc0791b831ffe69b6971232f073a337da1e8
parent9317a291b84457b9a8feb8ecd94d0593bb0fff9b
Fix the indirect pure virtual calls in DataFetcherSharedMemoryBase destructor.

StopFetchingDeviceData() may not be used in the destructor of this class because
it can call the pure virtual Stop() method. This patch fixes this issue by
introducing a StopFetchingAllDeviceData() method and calling it from the derived
DataFetcherSharedMemory class.

BUG=414632

Review URL: https://codereview.chromium.org/578863002

Cr-Commit-Position: refs/heads/master@{#295458}
content/browser/device_sensors/data_fetcher_shared_memory_base.cc
content/browser/device_sensors/data_fetcher_shared_memory_base.h
content/browser/device_sensors/device_inertial_sensor_service.cc