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

Issue 2847803003: Fix DCHECK in the chromoting host when disconnecting a WebRTC connection. (Closed)

Created:
3 years, 7 months ago by Sergey Ulanov
Modified:
3 years, 7 months ago
Reviewers:
Jamie
CC:
chromium-reviews, chromoting-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix DCHECK in the chromoting host when disconnecting a WebRTC connection. WebRTC creates threads internally. Thread::Stop() is a blocking operation, so it's not allowed on the network thread. To work around this problem WebrtcTransport::PeerConnectionWrapper uses ScopedAllowIO when closing PeerConnection. But it's not longer enough - some threads are stopped later when the factory is destroyed. Updated PeerConnectionWrapper destructor to destroy the PeerConnectionFactory with ScopedAllowIO. BUG=714699 Review-Url: https://codereview.chromium.org/2847803003 Cr-Commit-Position: refs/heads/master@{#467838} Committed: https://chromium.googlesource.com/chromium/src/+/8c6a6fa53691f5a3f55023cc003e9c665083ea34

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -0 lines) Patch
M remoting/protocol/webrtc_transport.cc View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (6 generated)
Sergey Ulanov
3 years, 7 months ago (2017-04-27 19:20:02 UTC) #2
Jamie
LGTM, thanks!
3 years, 7 months ago (2017-04-27 20:37:58 UTC) #3
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/2847803003/1
3 years, 7 months ago (2017-04-27 20:47:17 UTC) #5
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/328357) chromeos_daisy_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
3 years, 7 months ago (2017-04-27 21:11:08 UTC) #7
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/2847803003/1
3 years, 7 months ago (2017-04-27 21:52:04 UTC) #9
commit-bot: I haz the power
3 years, 7 months ago (2017-04-28 02:11:30 UTC) #12
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/8c6a6fa53691f5a3f55023cc003e...

Powered by Google App Engine
This is Rietveld 408576698