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

Unified Diff: remoting/host/plugin/host_script_object.cc

Issue 10538091: [Chromoting] Make ChromotingHost's dependency on libjingle injected, instead of hard-coded. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 months 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/plugin/host_script_object.cc
diff --git a/remoting/host/plugin/host_script_object.cc b/remoting/host/plugin/host_script_object.cc
index 91587520b453f7a6749128615c14a4faee1fd144..f8397d619f0809f4552d8a69e34d73fdf2650565 100644
--- a/remoting/host/plugin/host_script_object.cc
+++ b/remoting/host/plugin/host_script_object.cc
@@ -22,6 +22,7 @@
#include "remoting/host/host_key_pair.h"
#include "remoting/host/host_secret.h"
#include "remoting/host/it2me_host_user_interface.h"
+#include "remoting/host/jingle_session_manager_factory.h"
#include "remoting/host/pin_hash.h"
#include "remoting/host/plugin/daemon_controller.h"
#include "remoting/host/plugin/host_log_handler.h"
@@ -553,10 +554,15 @@ void HostNPScriptObject::FinishConnectNetworkThread(
signal_strategy_.reset(signal_strategy.release());
register_request_.reset(register_request.release());
+ // Create the session manager factory.
Wez 2012/06/11 22:17:06 nit: Suggest e.g. "Create a SessionManagerFactory
simonmorris 2012/06/11 23:08:59 Removed code.
+ scoped_ptr<SessionManagerFactory> session_manager_factory(
+ new JingleSessionManagerFactory());
+
// Create the Host.
LOG(INFO) << "NAT state: " << nat_traversal_enabled_;
host_ = new ChromotingHost(
host_context_.get(), signal_strategy_.get(), desktop_environment_.get(),
+ session_manager_factory.Pass(),
Wez 2012/06/11 22:17:06 Do you need to assign to a local & Pass(), or coul
simonmorris 2012/06/11 23:08:59 Done.
NetworkSettings(nat_traversal_enabled_ ?
NetworkSettings::NAT_TRAVERSAL_ENABLED :
NetworkSettings::NAT_TRAVERSAL_DISABLED));

Powered by Google App Engine
This is Rietveld 408576698