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

Issue 2398803002: Disconnect It2Me session if the incoming connection is invalid (Closed)

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

Description

Disconnect It2Me session if the incoming connection is invalid In a previous CL, I removed the It2MeConfirmationDialogFactory and instead held on to an instance of the dialog which was then used, and destroyed, when validating the incoming connection. The assumption was that the It2Me host would be destroyed when the user rejected the incoming connection. This is not actually what happens, the host remains running and will continue to receive these invalid requests until the web host times out and kills the native messaging host process. Due to this behavior, we now see a crash when the remote user attempts to connect again. Ideally we should stop the It2Me connection process completely if the incoming request is rejected. This change does that by calling Disconnect() when a validation error occurs. It also adds some DCHECKs to ensure the validation code is called on the correct thread (even for success cases) and updates the unit tests to work with these stricter thread affinity requirements. BUG=652490 Committed: https://crrev.com/bd36c87b70a3c88b3969b95208c4142e58c90ea3 Cr-Commit-Position: refs/heads/master@{#423325}

Patch Set 1 #

Patch Set 2 : Prereview cleanup #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -13 lines) Patch
M remoting/host/it2me/it2me_host.cc View 1 6 chunks +8 lines, -0 lines 0 comments Download
M remoting/host/it2me/it2me_host_unittest.cc View 1 6 chunks +33 lines, -13 lines 0 comments Download

Messages

Total messages: 13 (8 generated)
joedow
PTAL!
4 years, 2 months ago (2016-10-05 21:58:22 UTC) #5
Sergey Ulanov
lgtm
4 years, 2 months ago (2016-10-05 22:27:56 UTC) #6
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/2398803002/20001
4 years, 2 months ago (2016-10-05 22:49:32 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 2 months ago (2016-10-05 22:56:17 UTC) #11
commit-bot: I haz the power
4 years, 2 months ago (2016-10-05 22:58:15 UTC) #13
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/bd36c87b70a3c88b3969b95208c4142e58c90ea3
Cr-Commit-Position: refs/heads/master@{#423325}

Powered by Google App Engine
This is Rietveld 408576698