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

Unified Diff: remoting/host/desktop_session_agent.cc

Issue 13212009: Made DesktopEnvironment responsible for creation of the disconnect window. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Linux & Mac. Created 7 years, 9 months 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
Index: remoting/host/desktop_session_agent.cc
diff --git a/remoting/host/desktop_session_agent.cc b/remoting/host/desktop_session_agent.cc
index 8c90842de65307fc4bafefd3ceb17f3ab3f31736..47d814c3cbd06f3294f242e7bf4e84cc228f4ebb 100644
--- a/remoting/host/desktop_session_agent.cc
+++ b/remoting/host/desktop_session_agent.cc
@@ -15,7 +15,6 @@
#include "remoting/host/audio_capturer.h"
#include "remoting/host/chromoting_messages.h"
#include "remoting/host/desktop_environment.h"
-#include "remoting/host/disconnect_window.h"
#include "remoting/host/input_injector.h"
#include "remoting/host/remote_input_filter.h"
#include "remoting/host/screen_controls.h"
@@ -69,7 +68,6 @@ DesktopSessionAgent::Delegate::~Delegate() {
DesktopSessionAgent::~DesktopSessionAgent() {
DCHECK(!audio_capturer_);
DCHECK(!desktop_environment_);
- DCHECK(!disconnect_window_);
DCHECK(!network_channel_);
DCHECK(!screen_controls_);
DCHECK(!video_capturer_);
@@ -194,7 +192,6 @@ void DesktopSessionAgent::OnStartSessionAgent(
DCHECK(!started_);
DCHECK(!audio_capturer_);
DCHECK(!desktop_environment_);
- DCHECK(!disconnect_window_);
DCHECK(!input_injector_);
DCHECK(!screen_controls_);
DCHECK(!video_capturer_);
@@ -228,12 +225,6 @@ void DesktopSessionAgent::OnStartSessionAgent(
new DesktopSesssionClipboardStub(this));
input_injector_->Start(clipboard_stub.Pass());
- // Create the disconnect window.
- disconnect_window_ = DisconnectWindow::Create(&ui_strings_);
- disconnect_window_->Show(
- base::Bind(&DesktopSessionAgent::DisconnectSession, this),
- authenticated_jid.substr(0, authenticated_jid.find('/')));
-
// Start the audio capturer.
if (delegate_->desktop_environment_factory().SupportsAudioCapture()) {
audio_capturer_ = desktop_environment_->CreateAudioCapturer();
@@ -328,10 +319,6 @@ void DesktopSessionAgent::Stop() {
if (started_) {
started_ = false;
- // Close the disconnect window and stop listening to local input.
- disconnect_window_->Hide();
- disconnect_window_.reset();
-
// Ignore any further callbacks.
control_factory_.InvalidateWeakPtrs();
client_jid_.clear();

Powered by Google App Engine
This is Rietveld 408576698