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

Issue 2160913005: Use a ThreadChecker in DeviceSensorHost instead of DCHECK_CURRENTLY_ON. (Closed)

Created:
4 years, 5 months ago by Sam McNally
Modified:
4 years, 5 months ago
Reviewers:
timvolodine
CC:
chromium-reviews, riju_, darin-cc_chromium.org, jam, mlamouri+watch-sensors_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use a ThreadChecker in DeviceSensorHost instead of DCHECK_CURRENTLY_ON. BrowserThreads forget their identity during shutdown, causing nonsensical errors like "Check failed: ::content::BrowserThread::CurrentlyOn(BrowserThread::IO). Must be called on Chrome_IOThread; actually called on Chrome_IOThread." if DCHECK_CURRENTLY_ON is used in something that is called from a MessageLoop shutdown observer. This CL fixes this problem in DeviceSensorHost by using a ThreadChecker instead. BUG=625988 Committed: https://crrev.com/dd34c46303e555ce506cf683eedf3bc95033548d Cr-Commit-Position: refs/heads/master@{#406995}

Patch Set 1 : #

Total comments: 2

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -24 lines) Patch
M content/browser/device_sensors/device_sensor_browsertest.cc View 7 chunks +7 lines, -20 lines 0 comments Download
M content/browser/device_sensors/device_sensor_host.h View 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/device_sensors/device_sensor_host.cc View 1 3 chunks +6 lines, -4 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 35 (28 generated)
Sam McNally
4 years, 5 months ago (2016-07-20 06:48:05 UTC) #19
timvolodine
yeah, weird error message... in description should "identify" -> "identity"? https://codereview.chromium.org/2160913005/diff/60001/content/browser/device_sensors/device_sensor_host.h File content/browser/device_sensors/device_sensor_host.h (right): https://codereview.chromium.org/2160913005/diff/60001/content/browser/device_sensors/device_sensor_host.h#newcode25 ...
4 years, 5 months ago (2016-07-20 18:41:56 UTC) #22
Sam McNally
On 2016/07/20 18:41:56, timvolodine wrote: > yeah, weird error message... > in description should "identify" ...
4 years, 5 months ago (2016-07-21 00:09:29 UTC) #26
timvolodine
On 2016/07/21 00:09:29, Sam McNally wrote: > On 2016/07/20 18:41:56, timvolodine wrote: > > yeah, ...
4 years, 5 months ago (2016-07-21 15:58:51 UTC) #29
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/2160913005/80001
4 years, 5 months ago (2016-07-21 23:41:56 UTC) #31
commit-bot: I haz the power
Committed patchset #2 (id:80001)
4 years, 5 months ago (2016-07-21 23:47:05 UTC) #33
commit-bot: I haz the power
4 years, 5 months ago (2016-07-21 23:50:44 UTC) #35
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/dd34c46303e555ce506cf683eedf3bc95033548d
Cr-Commit-Position: refs/heads/master@{#406995}

Powered by Google App Engine
This is Rietveld 408576698