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

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: 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
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..c3acb5d6f9ff7ba06d3ae5b213b18e3d33e974db 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.
+ if (!is_it2me_) {
+ context.network_message_loop()->PostTask(
+ FROM_HERE, base::Bind(&ChromotingHost::SetSharedSecret, host_.get(),
+ std::string()));
+ }
+
message_loop.MessageLoop::Run();
// And then stop the chromoting context.
« remoting/host/remoting_me2me_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