| Index: remoting/host/chromoting_host.cc
|
| diff --git a/remoting/host/chromoting_host.cc b/remoting/host/chromoting_host.cc
|
| index e4bdae75990a3a93c2c1ac8229ee2ceb544ee95b..bf47ab6373ef2c437a151b0e5bd04f5c1a6371c9 100644
|
| --- a/remoting/host/chromoting_host.cc
|
| +++ b/remoting/host/chromoting_host.cc
|
| @@ -82,6 +82,7 @@ ChromotingHost::ChromotingHost(
|
| authenticating_client_(false),
|
| reject_authenticating_client_(false),
|
| enable_curtaining_(false),
|
| + enable_gnubby_auth_(false),
|
| weak_factory_(this) {
|
| DCHECK(network_task_runner_->BelongsToCurrentThread());
|
| DCHECK(signal_strategy);
|
| @@ -169,6 +170,10 @@ void ChromotingHost::SetMaximumSessionDuration(
|
| max_session_duration_ = max_session_duration;
|
| }
|
|
|
| +void ChromotingHost::SetEnableGnubbyAuth(bool enable) {
|
| + enable_gnubby_auth_ = enable;
|
| +}
|
| +
|
| ////////////////////////////////////////////////////////////////////////////
|
| // protocol::ClientSession::EventHandler implementation.
|
| bool ChromotingHost::OnSessionAuthenticated(ClientSession* client) {
|
| @@ -303,7 +308,8 @@ void ChromotingHost::OnIncomingSession(
|
| connection.Pass(),
|
| desktop_environment_factory_,
|
| max_session_duration_,
|
| - pairing_registry_);
|
| + pairing_registry_,
|
| + enable_gnubby_auth_);
|
| clients_.push_back(client);
|
| }
|
|
|
|
|