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

Issue 2747743004: Fix crash when user disconnects It2Me host (Closed)

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

Description

Fix crash when user disconnects It2Me host Cause: The delegating_signal_strategy_ pointer is destroyed on the network thread while It2meNativeMessagingHost keeps a raw pointer to it. Fix: DelegatingSignalStrategy will expose a callback that internally binds weak pointer. This will allow the callback to be invoked safely from any thread even after the instance is destroyed. BUG=700152 Review-Url: https://codereview.chromium.org/2747743004 Cr-Commit-Position: refs/heads/master@{#457288} Committed: https://chromium.googlesource.com/chromium/src/+/4429e92d02a964039db7ef88c6676cb8ce20fc56

Patch Set 1 #

Total comments: 11

Patch Set 2 : Reviewer's feedback #

Patch Set 3 : Fix Client breakage #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -27 lines) Patch
M remoting/client/plugin/chromoting_instance.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M remoting/host/it2me/it2me_native_messaging_host.h View 3 chunks +2 lines, -2 lines 0 comments Download
M remoting/host/it2me/it2me_native_messaging_host.cc View 1 2 chunks +9 lines, -7 lines 0 comments Download
M remoting/signaling/delegating_signal_strategy.h View 1 2 2 chunks +19 lines, -10 lines 0 comments Download
M remoting/signaling/delegating_signal_strategy.cc View 1 2 1 chunk +25 lines, -7 lines 0 comments Download

Messages

Total messages: 16 (8 generated)
kelvinp
PTAL
3 years, 9 months ago (2017-03-14 00:56:32 UTC) #2
Sergey Ulanov
LGTM when my style comments are addressed. https://codereview.chromium.org/2747743004/diff/1/remoting/host/it2me/it2me_native_messaging_host.cc File remoting/host/it2me/it2me_native_messaging_host.cc (right): https://codereview.chromium.org/2747743004/diff/1/remoting/host/it2me/it2me_native_messaging_host.cc#newcode299 remoting/host/it2me/it2me_native_messaging_host.cc:299: DelegatingSignalStrategy* delegating_signal_strategy ...
3 years, 9 months ago (2017-03-14 19:20:59 UTC) #3
kelvinp
FYI https://codereview.chromium.org/2747743004/diff/1/remoting/host/it2me/it2me_native_messaging_host.cc File remoting/host/it2me/it2me_native_messaging_host.cc (right): https://codereview.chromium.org/2747743004/diff/1/remoting/host/it2me/it2me_native_messaging_host.cc#newcode299 remoting/host/it2me/it2me_native_messaging_host.cc:299: DelegatingSignalStrategy* delegating_signal_strategy = On 2017/03/14 19:20:58, Sergey Ulanov ...
3 years, 9 months ago (2017-03-15 21:56:46 UTC) #4
kelvinp
FYI
3 years, 9 months ago (2017-03-15 21:56:47 UTC) #5
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/2747743004/20001
3 years, 9 months ago (2017-03-15 21:57:25 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/341039)
3 years, 9 months ago (2017-03-15 22:12:02 UTC) #10
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/2747743004/40001
3 years, 9 months ago (2017-03-16 00:09:39 UTC) #13
commit-bot: I haz the power
3 years, 9 months ago (2017-03-16 00:44:23 UTC) #16
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/4429e92d02a964039db7ef88c667...

Powered by Google App Engine
This is Rietveld 408576698