| Index: remoting/protocol/pairing_registry.cc
|
| diff --git a/remoting/protocol/pairing_registry.cc b/remoting/protocol/pairing_registry.cc
|
| index 583d84b4e5fc640fba4fe64e23ef9db08904c3da..fb763ed89f4581dc50a759fe95378f39c38eedff 100644
|
| --- a/remoting/protocol/pairing_registry.cc
|
| +++ b/remoting/protocol/pairing_registry.cc
|
| @@ -12,6 +12,13 @@
|
| namespace remoting {
|
| namespace protocol {
|
|
|
| +bool PairingRegistry::Pairing::operator==(const Pairing& other) const {
|
| + return created_time == other.created_time &&
|
| + client_id == other.client_id &&
|
| + client_name == other.client_name &&
|
| + shared_secret == other.shared_secret;
|
| +}
|
| +
|
| // How many bytes of random data to use for the client id and shared secret.
|
| const int kKeySize = 16;
|
|
|
| @@ -30,6 +37,7 @@ const PairingRegistry::Pairing& PairingRegistry::CreatePairing(
|
| DCHECK(CalledOnValidThread());
|
|
|
| Pairing result;
|
| + result.created_time = base::Time::Now();
|
| result.client_name = client_name;
|
| result.client_id = base::GenerateGUID();
|
|
|
| @@ -61,5 +69,11 @@ void NotImplementedPairingRegistryDelegate::Save(
|
| NOTIMPLEMENTED();
|
| };
|
|
|
| +PairingRegistry::PairedClients
|
| +NotImplementedPairingRegistryDelegate::LoadOnCurrentThread() {
|
| + NOTIMPLEMENTED();
|
| + return PairingRegistry::PairedClients();
|
| +}
|
| +
|
| } // namespace protocol
|
| } // namespace remoting
|
|
|