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

Issue 834673007: Issue 356320: Pinless entry not working on Windows. (Closed)

Created:
5 years, 11 months ago by weitao
Modified:
5 years, 11 months ago
Reviewers:
Sergey Ulanov
CC:
chromium-reviews, chromoting-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Issue 356320: Pinless entry not working on Windows. The problem is that we initialize pairing_registry_delegate_ in both OnInitializePairingRegistry and CreateAuthenticatorFactory (from StartHost and OnPolicyUpdate). The former runs on the UI thread and the latter runs on the network thread. The feature works only if OnInitializePairingRegistry is invoked first. I fixed the race condition on pairing_registry_delegate_ initialization in HostProcess by: 1. store the PairingRegistry object instead of the delegate object, and 2. recreate the authenticator factory object when the network process receives the reg keys for pinless auth from the daemon process, and 3. always create the PairingRegistry object and the authenticator factory on the network thread. Now everything runs on the network thread. If the network process receives the pinless auth reg key handles from the daemon process after StartHost has completed, we will simply recreate the authenticator factory. BUG=356320 Committed: https://crrev.com/fec693f0b30ce3c21a0df420ee8e68cc190ad318 Cr-Commit-Position: refs/heads/master@{#310559}

Patch Set 1 #

Patch Set 2 : #

Total comments: 8

Patch Set 3 : Addressing CR feedback #

Patch Set 4 : #

Total comments: 4

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -28 lines) Patch
M remoting/host/remoting_me2me_host.cc View 1 2 3 4 6 chunks +61 lines, -28 lines 0 comments Download

Messages

Total messages: 11 (2 generated)
weitao
5 years, 11 months ago (2015-01-07 20:02:30 UTC) #2
Wez
nit: Please replace the CL title with something that describes the change you're making, rather ...
5 years, 11 months ago (2015-01-07 20:13:39 UTC) #3
Sergey Ulanov
https://codereview.chromium.org/834673007/diff/20001/remoting/host/remoting_me2me_host.cc File remoting/host/remoting_me2me_host.cc (right): https://codereview.chromium.org/834673007/diff/20001/remoting/host/remoting_me2me_host.cc#newcode629 remoting/host/remoting_me2me_host.cc:629: scoped_refptr<PairingRegistry> pairing_registry = NULL; don't need to set it ...
5 years, 11 months ago (2015-01-07 20:26:43 UTC) #4
weitao
PTAL https://codereview.chromium.org/834673007/diff/20001/remoting/host/remoting_me2me_host.cc File remoting/host/remoting_me2me_host.cc (right): https://codereview.chromium.org/834673007/diff/20001/remoting/host/remoting_me2me_host.cc#newcode629 remoting/host/remoting_me2me_host.cc:629: scoped_refptr<PairingRegistry> pairing_registry = NULL; On 2015/01/07 20:26:43, Sergey ...
5 years, 11 months ago (2015-01-08 00:13:36 UTC) #5
Sergey Ulanov
LGTM https://codereview.chromium.org/834673007/diff/60001/remoting/host/remoting_me2me_host.cc File remoting/host/remoting_me2me_host.cc (right): https://codereview.chromium.org/834673007/diff/60001/remoting/host/remoting_me2me_host.cc#newcode630 remoting/host/remoting_me2me_host.cc:630: CreatePairingRegistryDelegate()); nit: this would be more readable with ...
5 years, 11 months ago (2015-01-08 17:34:02 UTC) #6
weitao
https://codereview.chromium.org/834673007/diff/60001/remoting/host/remoting_me2me_host.cc File remoting/host/remoting_me2me_host.cc (right): https://codereview.chromium.org/834673007/diff/60001/remoting/host/remoting_me2me_host.cc#newcode630 remoting/host/remoting_me2me_host.cc:630: CreatePairingRegistryDelegate()); On 2015/01/08 17:34:02, Sergey Ulanov wrote: > nit: ...
5 years, 11 months ago (2015-01-08 17:56:29 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/834673007/80001
5 years, 11 months ago (2015-01-08 18:40:37 UTC) #9
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 11 months ago (2015-01-08 19:26:09 UTC) #10
commit-bot: I haz the power
5 years, 11 months ago (2015-01-08 19:28:10 UTC) #11
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/fec693f0b30ce3c21a0df420ee8e68cc190ad318
Cr-Commit-Position: refs/heads/master@{#310559}

Powered by Google App Engine
This is Rietveld 408576698