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

Issue 578863002: Fix the indirect pure virtual calls in DataFetcherSharedMemoryBase destructor. (Closed)

Created:
6 years, 3 months ago by timvolodine
Modified:
6 years, 3 months ago
Reviewers:
Bernhard Bauer
CC:
chromium-reviews, riju_, darin-cc_chromium.org, jam, Michael van Ouwerkerk
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

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 Committed: https://crrev.com/694cd937163f3eb45a2e52dd7da7899c2c9db146 Cr-Commit-Position: refs/heads/master@{#295458}

Patch Set 1 #

Patch Set 2 : fix comment in data_fetcher_shared_memory_base #

Total comments: 7

Patch Set 3 : Bernhard's comments #

Patch Set 4 : fix DCHECK_EQ #

Patch Set 5 : fix unsigned 0 compilation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -4 lines) Patch
M content/browser/device_sensors/data_fetcher_shared_memory_base.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/device_sensors/data_fetcher_shared_memory_base.cc View 1 2 3 4 3 chunks +6 lines, -3 lines 0 comments Download
M content/browser/device_sensors/device_inertial_sensor_service.cc View 1 2 1 chunk +6 lines, -1 line 0 comments Download

Messages

Total messages: 10 (2 generated)
timvolodine
6 years, 3 months ago (2014-09-17 16:23:01 UTC) #2
Bernhard Bauer
https://codereview.chromium.org/578863002/diff/20001/content/browser/device_sensors/data_fetcher_shared_memory_base.cc File content/browser/device_sensors/data_fetcher_shared_memory_base.cc (right): https://codereview.chromium.org/578863002/diff/20001/content/browser/device_sensors/data_fetcher_shared_memory_base.cc#newcode107 content/browser/device_sensors/data_fetcher_shared_memory_base.cc:107: DCHECK(started_consumers_ == 0); If you use DCHECK_EQ() (with the ...
6 years, 3 months ago (2014-09-17 16:41:01 UTC) #3
timvolodine
https://codereview.chromium.org/578863002/diff/20001/content/browser/device_sensors/data_fetcher_shared_memory_base.cc File content/browser/device_sensors/data_fetcher_shared_memory_base.cc (right): https://codereview.chromium.org/578863002/diff/20001/content/browser/device_sensors/data_fetcher_shared_memory_base.cc#newcode107 content/browser/device_sensors/data_fetcher_shared_memory_base.cc:107: DCHECK(started_consumers_ == 0); On 2014/09/17 16:41:00, Bernhard Bauer wrote: ...
6 years, 3 months ago (2014-09-17 18:25:00 UTC) #4
Bernhard Bauer
LGTM! https://codereview.chromium.org/578863002/diff/20001/content/browser/device_sensors/data_fetcher_shared_memory_base.h File content/browser/device_sensors/data_fetcher_shared_memory_base.h (right): https://codereview.chromium.org/578863002/diff/20001/content/browser/device_sensors/data_fetcher_shared_memory_base.h#newcode82 content/browser/device_sensors/data_fetcher_shared_memory_base.h:82: void StopFetchingAllDeviceData(); On 2014/09/17 18:25:00, timvolodine wrote: > ...
6 years, 3 months ago (2014-09-17 21:36:37 UTC) #5
timvolodine
On 2014/09/17 21:36:37, Bernhard Bauer wrote: > LGTM! > > https://codereview.chromium.org/578863002/diff/20001/content/browser/device_sensors/data_fetcher_shared_memory_base.h > File content/browser/device_sensors/data_fetcher_shared_memory_base.h (right): ...
6 years, 3 months ago (2014-09-18 11:36:39 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/578863002/80001
6 years, 3 months ago (2014-09-18 11:37:47 UTC) #8
commit-bot: I haz the power
Committed patchset #5 (id:80001) as 67fb256774e422810d7963d4fa8aa0848b48a804
6 years, 3 months ago (2014-09-18 12:10:01 UTC) #9
commit-bot: I haz the power
6 years, 3 months ago (2014-09-18 12:10:44 UTC) #10
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/694cd937163f3eb45a2e52dd7da7899c2c9db146
Cr-Commit-Position: refs/heads/master@{#295458}

Powered by Google App Engine
This is Rietveld 408576698