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

Issue 16893002: Make the mapping from client id -> secret asynchronous. (Closed)

Created:
7 years, 6 months ago by Jamie
Modified:
7 years, 6 months ago
Reviewers:
rmsousa
CC:
chromium-reviews, jamiewalch+watch_chromium.org, dcaiafa+watch_chromium.org, hclam+watch_chromium.org, wez+watch_chromium.org, amit, sanjeevr, garykac+watch_chromium.org, lambroslambrou+watch_chromium.org, rmsousa+watch_chromium.org, weitaosu+watch_chromium.org, alexeypa+watch_chromium.org, sergeyu+watch_chromium.org
Visibility:
Public.

Description

Make the mapping from client id -> secret asynchronous. In the original design, I intended the pairing registry delegate to maintain an in-memory cache of client id -> secret, and for this to be invalidated by a watcher when the on-disk version changes (for example, if the web-app is used to revoke a pairing). I think an asynchronous model makes more sense, and eliminates the need for the watcher. In addition, this CL fixes a bug in the negotiating authenticator when dealing with authenticators that process messages asychronously. BUG=156182 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=206347

Patch Set 1 #

Total comments: 8

Patch Set 2 : Reviewer feedback. #

Patch Set 3 : Fixed clang errors. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+207 lines, -119 lines) Patch
M remoting/protocol/negotiating_authenticator_base.cc View 1 chunk +1 line, -0 lines 0 comments Download
M remoting/protocol/negotiating_authenticator_unittest.cc View 9 chunks +41 lines, -42 lines 0 comments Download
M remoting/protocol/pairing_host_authenticator.h View 2 chunks +8 lines, -0 lines 0 comments Download
M remoting/protocol/pairing_host_authenticator.cc View 5 chunks +35 lines, -18 lines 0 comments Download
M remoting/protocol/pairing_registry.h View 1 3 chunks +22 lines, -11 lines 0 comments Download
M remoting/protocol/pairing_registry.cc View 2 chunks +16 lines, -17 lines 0 comments Download
M remoting/protocol/pairing_registry_unittest.cc View 1 2 2 chunks +30 lines, -27 lines 0 comments Download
M remoting/protocol/protocol_mock_objects.h View 2 chunks +25 lines, -0 lines 0 comments Download
M remoting/protocol/protocol_mock_objects.cc View 1 2 2 chunks +29 lines, -4 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Jamie
ptal
7 years, 6 months ago (2013-06-12 23:27:34 UTC) #1
rmsousa
lgtm I think AddPairing would be better asynchronous, but since it won't affect user experience ...
7 years, 6 months ago (2013-06-13 04:26:18 UTC) #2
Jamie
fyi https://codereview.chromium.org/16893002/diff/1/remoting/protocol/pairing_registry.cc File remoting/protocol/pairing_registry.cc (right): https://codereview.chromium.org/16893002/diff/1/remoting/protocol/pairing_registry.cc#newcode26 remoting/protocol/pairing_registry.cc:26: PairingRegistry::Pairing PairingRegistry::CreatePairing( On 2013/06/13 04:26:19, rmsousa wrote: > ...
7 years, 6 months ago (2013-06-13 17:22:15 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamiewalch@chromium.org/16893002/7001
7 years, 6 months ago (2013-06-13 17:22:20 UTC) #4
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 6 months ago (2013-06-13 17:41:26 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamiewalch@chromium.org/16893002/18002
7 years, 6 months ago (2013-06-13 18:23:56 UTC) #6
commit-bot: I haz the power
7 years, 6 months ago (2013-06-14 07:08:16 UTC) #7
Message was sent while issue was closed.
Change committed as 206347

Powered by Google App Engine
This is Rietveld 408576698