|
|
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. |
DescriptionUse 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 : #
Depends on Patchset: Messages
Total messages: 35 (28 generated)
The CQ bit was checked by sammc@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was checked by sammc@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: win_chromium_compile_dbg_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_comp...) win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_...)
The CQ bit was checked by sammc@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Patchset #1 (id:1) has been deleted
Patchset #1 (id:20001) has been deleted
The CQ bit was checked by sammc@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Patchset #1 (id:40001) has been deleted
Description was changed from ========== Use a thread checker in DeviceSensorHost instead of DCHECK_CURRENTLY_ON. BrowserThreads forget their identify during shutdown, causing fun 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 ========== to ========== Use a thread checker in DeviceSensorHost instead of DCHECK_CURRENTLY_ON. BrowserThreads forget their identify 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 ==========
Description was changed from ========== Use a thread checker in DeviceSensorHost instead of DCHECK_CURRENTLY_ON. BrowserThreads forget their identify 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 ========== to ========== Use a ThreadChecker in DeviceSensorHost instead of DCHECK_CURRENTLY_ON. BrowserThreads forget their identify 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 ==========
sammc@chromium.org changed reviewers: + timvolodine@chromium.org
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
yeah, weird error message... in description should "identify" -> "identity"? https://codereview.chromium.org/2160913005/diff/60001/content/browser/device_... File content/browser/device_sensors/device_sensor_host.h (right): https://codereview.chromium.org/2160913005/diff/60001/content/browser/device_... content/browser/device_sensors/device_sensor_host.h:25: // All methods below to be called on the IO thread. hmm I understand this is now actually enforced in render_process_host_impl.cc by adding on io_task_runner. Can we at least add a corresponding dcheck somewhere in create/construction of this host?
Description was changed from ========== Use a ThreadChecker in DeviceSensorHost instead of DCHECK_CURRENTLY_ON. BrowserThreads forget their identify 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 ========== to ========== 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 ==========
The CQ bit was checked by sammc@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
On 2016/07/20 18:41:56, timvolodine wrote: > yeah, weird error message... > in description should "identify" -> "identity"? > Yes, done. https://codereview.chromium.org/2160913005/diff/60001/content/browser/device_... File content/browser/device_sensors/device_sensor_host.h (right): https://codereview.chromium.org/2160913005/diff/60001/content/browser/device_... content/browser/device_sensors/device_sensor_host.h:25: // All methods below to be called on the IO thread. On 2016/07/20 18:41:56, timvolodine wrote: > hmm I understand this is now actually enforced in render_process_host_impl.cc by > adding on io_task_runner. Can we at least add a corresponding dcheck somewhere > in create/construction of this host? Done.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
On 2016/07/21 00:09:29, Sam McNally wrote: > On 2016/07/20 18:41:56, timvolodine wrote: > > yeah, weird error message... > > in description should "identify" -> "identity"? > > > Yes, done. > > https://codereview.chromium.org/2160913005/diff/60001/content/browser/device_... > File content/browser/device_sensors/device_sensor_host.h (right): > > https://codereview.chromium.org/2160913005/diff/60001/content/browser/device_... > content/browser/device_sensors/device_sensor_host.h:25: // All methods below to > be called on the IO thread. > On 2016/07/20 18:41:56, timvolodine wrote: > > hmm I understand this is now actually enforced in render_process_host_impl.cc > by > > adding on io_task_runner. Can we at least add a corresponding dcheck somewhere > > in create/construction of this host? > > Done. lgtm, thanks!
The CQ bit was checked by sammc@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== 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 ========== to ========== 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 ==========
Message was sent while issue was closed.
Committed patchset #2 (id:80001)
Message was sent while issue was closed.
Description was changed from ========== 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 ========== to ========== 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} ==========
Message was sent while issue was closed.
Patchset 2 (id:??) landed as https://crrev.com/dd34c46303e555ce506cf683eedf3bc95033548d Cr-Commit-Position: refs/heads/master@{#406995} |