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

Unified Diff: remoting/host/simple_host_process.cc

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
« remoting/host/chromoting_host.cc ('K') | « remoting/host/remoting_me2me_host.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/simple_host_process.cc
diff --git a/remoting/host/simple_host_process.cc b/remoting/host/simple_host_process.cc
index c19a73c0dae0a3ca67a34dffa61e18b65a3988ac..f8196a71ba50710394bfeb9ce3d381ada73dd390 100644
--- a/remoting/host/simple_host_process.cc
+++ b/remoting/host/simple_host_process.cc
@@ -192,6 +192,16 @@ class SimpleHost {
// Let the chromoting host run until the shutdown task is executed.
host_->Start();
+
+ // Set an empty shared-secret for Me2Me.
+ // TODO(lambroslambrou): This is a temporary fix, pending a Me2Me-specific
+ // AuthenticatorFactory - crbug.com/105214.
+ if (!is_it2me_) {
+ context.network_message_loop()->PostTask(
+ FROM_HERE, base::Bind(&ChromotingHost::SetSharedSecret, host_.get(),
+ ""));
+ }
+
message_loop.MessageLoop::Run();
// And then stop the chromoting context.
« remoting/host/chromoting_host.cc ('K') | « remoting/host/remoting_me2me_host.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698