| Index: remoting/host/chromoting_host.cc
|
| diff --git a/remoting/host/chromoting_host.cc b/remoting/host/chromoting_host.cc
|
| index 40f136e15ea51c6890497c270869cca77448d318..06270d31319fb2190601a73e8a16b70dacbf7c32 100644
|
| --- a/remoting/host/chromoting_host.cc
|
| +++ b/remoting/host/chromoting_host.cc
|
| @@ -375,6 +375,17 @@ void ChromotingHost::DisconnectAllClients() {
|
| }
|
| }
|
|
|
| +void ChromotingHost::DisconnectClient(DesktopEnvironment* desktop_environment) {
|
| + DCHECK(network_task_runner_->BelongsToCurrentThread());
|
| +
|
| + for (ClientList::iterator i = clients_.begin(); i != clients_.end(); ++i) {
|
| + if ((*i)->desktop_environment() == desktop_environment) {
|
| + (*i)->Disconnect();
|
| + break;
|
| + }
|
| + }
|
| +}
|
| +
|
| void ChromotingHost::SetUiStrings(const UiStrings& ui_strings) {
|
| DCHECK(network_task_runner_->BelongsToCurrentThread());
|
| DCHECK_EQ(state_, kInitial);
|
|
|