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

Issue 21128006: Refactored PairingRegistry::Delegate such that it can retrieve/modify for a single client. (Closed)

Created:
7 years, 4 months ago by alexeypa (please no reviews)
Modified:
7 years, 4 months ago
Reviewers:
Jamie
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

Refactored PairingRegistry::Delegate such that it can retrieve/modify for a single client. The delegate implementation for Linux now keeps a separate JSON file per each pairing under "paired-clients" in the config directory. This CL also makes the delegate completely synchronous moving jumping between task runners to the parent PairingRegistry. BUG=156182 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=215187

Patch Set 1 #

Total comments: 22

Patch Set 2 : CR feedback. #

Patch Set 3 : - #

Total comments: 6

Patch Set 4 : cosmetic #

Total comments: 6

Patch Set 5 : CR feedback #

Patch Set 6 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+571 lines, -537 lines) Patch
M remoting/host/pairing_registry_delegate.h View 1 2 3 4 1 chunk +6 lines, -6 lines 0 comments Download
M remoting/host/pairing_registry_delegate.cc View 1 1 chunk +4 lines, -4 lines 0 comments Download
M remoting/host/pairing_registry_delegate_linux.h View 1 2 3 4 2 chunks +14 lines, -37 lines 0 comments Download
M remoting/host/pairing_registry_delegate_linux.cc View 1 2 3 1 chunk +104 lines, -78 lines 0 comments Download
M remoting/host/pairing_registry_delegate_linux_unittest.cc View 1 2 3 4 2 chunks +63 lines, -50 lines 0 comments Download
M remoting/host/pairing_registry_delegate_mac.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M remoting/host/pairing_registry_delegate_win.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M remoting/host/remoting_me2me_host.cc View 1 2 3 4 5 1 chunk +2 lines, -6 lines 0 comments Download
M remoting/host/setup/native_messaging_host_unittest.cc View 1 2 chunks +5 lines, -3 lines 0 comments Download
M remoting/protocol/negotiating_authenticator_unittest.cc View 1 7 chunks +3 lines, -12 lines 0 comments Download
M remoting/protocol/pairing_registry.h View 1 2 3 4 6 chunks +67 lines, -44 lines 0 comments Download
M remoting/protocol/pairing_registry.cc View 1 2 3 7 chunks +146 lines, -149 lines 0 comments Download
M remoting/protocol/pairing_registry_unittest.cc View 1 2 7 chunks +85 lines, -72 lines 0 comments Download
M remoting/protocol/protocol_mock_objects.h View 1 2 2 chunks +25 lines, -34 lines 0 comments Download
M remoting/protocol/protocol_mock_objects.cc View 1 2 2 chunks +45 lines, -38 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
alexeypa (please no reviews)
PTAL.
7 years, 4 months ago (2013-07-29 23:44:49 UTC) #1
Jamie
https://chromiumcodereview.appspot.com/21128006/diff/1/remoting/host/pairing_registry_delegate_linux.cc File remoting/host/pairing_registry_delegate_linux.cc (right): https://chromiumcodereview.appspot.com/21128006/diff/1/remoting/host/pairing_registry_delegate_linux.cc#newcode23 remoting/host/pairing_registry_delegate_linux.cc:23: const char kRegistryDirectory[] = "pairing-registry"; I think paired-clients is ...
7 years, 4 months ago (2013-07-30 21:35:07 UTC) #2
alexeypa (please no reviews)
PTAL. https://chromiumcodereview.appspot.com/21128006/diff/1/remoting/host/pairing_registry_delegate_linux.cc File remoting/host/pairing_registry_delegate_linux.cc (right): https://chromiumcodereview.appspot.com/21128006/diff/1/remoting/host/pairing_registry_delegate_linux.cc#newcode23 remoting/host/pairing_registry_delegate_linux.cc:23: const char kRegistryDirectory[] = "pairing-registry"; On 2013/07/30 21:35:07, ...
7 years, 4 months ago (2013-07-31 21:31:24 UTC) #3
alexeypa (please no reviews)
ping
7 years, 4 months ago (2013-08-01 19:06:24 UTC) #4
Jamie
LGTM with nits and one extra test request. https://chromiumcodereview.appspot.com/21128006/diff/19001/remoting/protocol/pairing_registry.cc File remoting/protocol/pairing_registry.cc (right): https://chromiumcodereview.appspot.com/21128006/diff/19001/remoting/protocol/pairing_registry.cc#newcode267 remoting/protocol/pairing_registry.cc:267: LOG(WARNING) ...
7 years, 4 months ago (2013-08-01 22:44:04 UTC) #5
alexeypa (please no reviews)
https://chromiumcodereview.appspot.com/21128006/diff/19001/remoting/protocol/pairing_registry.cc File remoting/protocol/pairing_registry.cc (right): https://chromiumcodereview.appspot.com/21128006/diff/19001/remoting/protocol/pairing_registry.cc#newcode267 remoting/protocol/pairing_registry.cc:267: LOG(WARNING) << "A pairing entry is not a disctionary."; ...
7 years, 4 months ago (2013-08-01 23:07:42 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alexeypa@chromium.org/21128006/36002
7 years, 4 months ago (2013-08-01 23:09:57 UTC) #7
commit-bot: I haz the power
7 years, 4 months ago (2013-08-02 01:35:21 UTC) #8
Message was sent while issue was closed.
Change committed as 215187

Powered by Google App Engine
This is Rietveld 408576698