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

Unified Diff: remoting/host/chromoting_host.h

Issue 8764012: Set empty shared secret for Me2Me hosts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cache parameter of SetSharedSecret() and use it when session manager is created. Created 9 years, 1 month 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
« no previous file with comments | « no previous file | remoting/host/chromoting_host.cc » ('j') | remoting/host/chromoting_host.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/chromoting_host.h
diff --git a/remoting/host/chromoting_host.h b/remoting/host/chromoting_host.h
index 290859ef3afb945470b7d9d6197bc2288e28dd4a..d00f31ff90aa9fd2e183a025d8da98849de6b1a4 100644
--- a/remoting/host/chromoting_host.h
+++ b/remoting/host/chromoting_host.h
@@ -189,6 +189,15 @@ class ChromotingHost : public base::RefCountedThreadSafe<ChromotingHost>,
HostKeyPair key_pair_;
bool allow_nat_traversal_;
+ // TODO(lambroslambrou): The following is a temporary fix for Me2Me
+ // (crbug.com/105995), pending the AuthenticatorFactory work.
+ // Cache the shared secret, in case SetSharedSecret() is called before the
+ // session manager has been created.
+ // The |have_shared_secret_| flag is to distinguish SetSharedSecret() not
+ // being called at all, from being called with an empty string.
+ std::string shared_secret_;
+ bool have_shared_secret_;
+
// Connection objects.
scoped_ptr<SignalStrategy> signal_strategy_;
std::string local_jid_;
« no previous file with comments | « no previous file | remoting/host/chromoting_host.cc » ('j') | remoting/host/chromoting_host.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698