diff options
author | simonmorris@chromium.org <simonmorris@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-23 01:05:14 +0000 |
---|---|---|
committer | simonmorris@chromium.org <simonmorris@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-23 01:05:14 +0000 |
commit | 5dc5b12a05218732918d7276215bd818f4cc0916 (patch) | |
tree | f2a94cec0617b50fd9e9583e89daef8601f095b1 /remoting/host/chromoting_host.cc | |
parent | 82752671f55f7eecf069c83c12f31cbe676459df (diff) | |
download | chromium_src-5dc5b12a05218732918d7276215bd818f4cc0916.zip chromium_src-5dc5b12a05218732918d7276215bd818f4cc0916.tar.gz chromium_src-5dc5b12a05218732918d7276215bd818f4cc0916.tar.bz2 |
This CL sets a maximum session duration only for Linux Me2Me, and hard-codes it to 12 hours.
A follow-up CL will get the maximum session duration from a
policy.
BUG=132678
Review URL: https://chromiumcodereview.appspot.com/10629016
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@143767 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/host/chromoting_host.cc')
-rw-r--r-- | remoting/host/chromoting_host.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/remoting/host/chromoting_host.cc b/remoting/host/chromoting_host.cc index 4aa7768..db48080 100644 --- a/remoting/host/chromoting_host.cc +++ b/remoting/host/chromoting_host.cc @@ -156,6 +156,11 @@ void ChromotingHost::SetAuthenticatorFactory( session_manager_->set_authenticator_factory(authenticator_factory.Pass()); } +void ChromotingHost::SetMaximumSessionDuration( + const base::TimeDelta& max_session_duration) { + max_session_duration_ = max_session_duration; +} + //////////////////////////////////////////////////////////////////////////// // protocol::ClientSession::EventHandler implementation. void ChromotingHost::OnSessionAuthenticated(ClientSession* client) { @@ -315,7 +320,7 @@ void ChromotingHost::OnIncomingSession( new protocol::ConnectionToClient(session)); ClientSession* client = new ClientSession( this, connection.Pass(), desktop_environment_->event_executor(), - desktop_environment_->capturer()); + desktop_environment_->capturer(), max_session_duration_); clients_.push_back(client); } |