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

Unified Diff: remoting/protocol/protocol_mock_objects.cc

Issue 17063003: Changes to PairingRegistry to facilitate per-platform implementions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed spacing. Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: remoting/protocol/protocol_mock_objects.cc
diff --git a/remoting/protocol/protocol_mock_objects.cc b/remoting/protocol/protocol_mock_objects.cc
index eb4022abfb40312279ab38f28fc9cd094867e706..1902d83acc9a65d1990e351e0c74d4433affc951 100644
--- a/remoting/protocol/protocol_mock_objects.cc
+++ b/remoting/protocol/protocol_mock_objects.cc
@@ -55,8 +55,12 @@ MockPairingRegistryDelegate::~MockPairingRegistryDelegate() {
}
void MockPairingRegistryDelegate::AddPairing(
- const PairingRegistry::Pairing& new_paired_client) {
- paired_clients_[new_paired_client.client_id] = new_paired_client;
+ const PairingRegistry::Pairing& new_paired_client,
+ const PairingRegistry::AddPairingCallback& callback) {
+ paired_clients_[new_paired_client.client_id()] = new_paired_client;
+ if (!callback.is_null()) {
+ callback.Run(true);
+ }
}
void MockPairingRegistryDelegate::GetPairing(
« remoting/protocol/pairing_registry.h ('K') | « remoting/protocol/protocol_mock_objects.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698