Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / remoting / protocol / pairing_registry.cc
index e33b59d..edf085c 100644 (file)
@@ -90,7 +90,9 @@ bool PairingRegistry::Pairing::operator==(const Pairing& other) const {
 }
 
 bool PairingRegistry::Pairing::is_valid() const {
-  return !client_id_.empty() && !shared_secret_.empty();
+  // |shared_secret_| is optional. It will be empty on Windows because the
+  // privileged registry key can only be read in the elevated host process.
+  return !client_id_.empty();
 }
 
 PairingRegistry::PairingRegistry(