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

Unified Diff: remoting/host/chromoting_host.cc

Issue 6780014: Clean up remoting project (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: got rid of ref counting on user authenticator Created 9 years, 9 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
« no previous file with comments | « remoting/host/capturer_win_unittest.cc ('k') | remoting/host/chromoting_host_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/chromoting_host.cc
diff --git a/remoting/host/chromoting_host.cc b/remoting/host/chromoting_host.cc
index ae5ef68124a7ac99cdb1660188d5c621bd263e72..d604d5224cdcfa3733bd16fbed644b16d2ceaecd 100644
--- a/remoting/host/chromoting_host.cc
+++ b/remoting/host/chromoting_host.cc
@@ -4,9 +4,6 @@
#include "remoting/host/chromoting_host.h"
-#include "base/bind.h"
-#include "base/stl_util-inl.h"
-#include "base/task.h"
#include "build/build_config.h"
#include "remoting/base/constants.h"
#include "remoting/base/encoder.h"
@@ -38,11 +35,11 @@ namespace remoting {
ChromotingHost* ChromotingHost::Create(ChromotingHostContext* context,
MutableHostConfig* config) {
Capturer* capturer = Capturer::Create();
- InputStub* input_stub = CreateEventExecutor(context->ui_message_loop(),
- capturer);
+ EventExecutor* event_executor =
+ EventExecutor::Create(context->ui_message_loop(), capturer);
Curtain* curtain = Curtain::Create();
return Create(context, config,
- new DesktopEnvironment(capturer, input_stub, curtain));
+ new DesktopEnvironment(capturer, event_executor, curtain));
}
// static
@@ -332,9 +329,9 @@ void ChromotingHost::OnNewClientSession(
// Create a client object.
ClientSession* client = new ClientSession(
this,
- base::Bind(UserAuthenticator::Create),
+ UserAuthenticator::Create(),
connection,
- desktop_environment_->input_stub());
+ desktop_environment_->event_executor());
connection->set_host_stub(client);
connection->set_input_stub(client);
« no previous file with comments | « remoting/host/capturer_win_unittest.cc ('k') | remoting/host/chromoting_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698