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

Unified Diff: remoting/host/chromoting_host.cc

Issue 8725016: Refactor IT2Me-specific functions into a HostObserver subclass. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove unused header Created 9 years, 1 month 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 | « no previous file | remoting/host/chromoting_host_unittest.cc » ('j') | remoting/host/desktop_environment.h » ('J')
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 c6485779d4b0a86aad1e02217653900f07e8b837..4963d54fa95d355d24706ff1d00c78bf2e2def6d 100644
--- a/remoting/host/chromoting_host.cc
+++ b/remoting/host/chromoting_host.cc
@@ -203,9 +203,6 @@ void ChromotingHost::OnSessionAuthenticated(ClientSession* client) {
// TODO(jamiewalch): Tidy up actions to be taken on connect/disconnect,
// including closing the connection on failure of a critical operation.
EnableCurtainMode(true);
-
- std::string username = jid.substr(0, jid.find('/'));
- desktop_environment_->OnConnect(username);
}
void ChromotingHost::OnSessionClosed(ClientSession* client) {
@@ -234,7 +231,6 @@ void ChromotingHost::OnSessionClosed(ClientSession* client) {
// Disable the "curtain" if there are no more active clients.
EnableCurtainMode(false);
- desktop_environment_->OnLastDisconnect();
}
}
@@ -393,7 +389,6 @@ void ChromotingHost::PauseSession(bool pause) {
for (client = clients_.begin(); client != clients_.end(); ++client) {
(*client)->set_awaiting_continue_approval(pause);
}
- desktop_environment_->OnPause(pause);
}
void ChromotingHost::SetUiStrings(const UiStrings& ui_strings) {
« no previous file with comments | « no previous file | remoting/host/chromoting_host_unittest.cc » ('j') | remoting/host/desktop_environment.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698