diff options
Diffstat (limited to 'remoting/host/it2me_host_user_interface.cc')
-rw-r--r-- | remoting/host/it2me_host_user_interface.cc | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/remoting/host/it2me_host_user_interface.cc b/remoting/host/it2me_host_user_interface.cc index 4b3145f..38e0624 100644 --- a/remoting/host/it2me_host_user_interface.cc +++ b/remoting/host/it2me_host_user_interface.cc @@ -28,6 +28,7 @@ It2MeHostUserInterface::It2MeHostUserInterface( scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner) : HostUserInterface(network_task_runner, ui_task_runner), ALLOW_THIS_IN_INITIALIZER_LIST(timer_weak_factory_(this)) { + DCHECK(ui_task_runner->BelongsToCurrentThread()); } It2MeHostUserInterface::~It2MeHostUserInterface() { @@ -36,11 +37,10 @@ It2MeHostUserInterface::~It2MeHostUserInterface() { ShowContinueWindow(false); } -void It2MeHostUserInterface::Start(ChromotingHost* host, - const base::Closure& disconnect_callback) { - DCHECK(network_task_runner()->BelongsToCurrentThread()); +void It2MeHostUserInterface::Init() { + DCHECK(ui_task_runner()->BelongsToCurrentThread()); - HostUserInterface::Start(host, disconnect_callback); + HostUserInterface::Init(); continue_window_ = ContinueWindow::Create(); } @@ -73,18 +73,6 @@ void It2MeHostUserInterface::ProcessOnClientDisconnected() { StartContinueWindowTimer(false); } -void It2MeHostUserInterface::StartForTest( - ChromotingHost* host, - const base::Closure& disconnect_callback, - scoped_ptr<DisconnectWindow> disconnect_window, - scoped_ptr<ContinueWindow> continue_window, - scoped_ptr<LocalInputMonitor> local_input_monitor) { - HostUserInterface::StartForTest(host, disconnect_callback, - disconnect_window.Pass(), - local_input_monitor.Pass()); - continue_window_ = continue_window.Pass(); -} - void It2MeHostUserInterface::ContinueSession(bool continue_session) { DCHECK(ui_task_runner()->BelongsToCurrentThread()); |