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

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: Rebase 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 | « 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 7aef609208a15a1d5b9269f063d0878b0dab6e7d..9ffa7ff2aaba63c2417caf9ee0f4a20dda4791e6 100644
--- a/remoting/host/simple_host_process.cc
+++ b/remoting/host/simple_host_process.cc
@@ -189,6 +189,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.
« no previous file with comments | « remoting/host/remoting_me2me_host.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698