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

Unified Diff: remoting/webapp/crd/js/remoting.js

Issue 1016623002: [Webapp Refactor] Reparent the ConnectedView into the delegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing Created 5 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
« no previous file with comments | « remoting/webapp/crd/js/desktop_viewport.js ('k') | remoting/webapp/crd/js/session_connector_impl.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/crd/js/remoting.js
diff --git a/remoting/webapp/crd/js/remoting.js b/remoting/webapp/crd/js/remoting.js
index 2686788fa479e161033c82777e89f859b376aade..9de89badd70082681ff65b4b6391e960fef351be 100644
--- a/remoting/webapp/crd/js/remoting.js
+++ b/remoting/webapp/crd/js/remoting.js
@@ -87,8 +87,9 @@ remoting.getExtensionInfo = function() {
* the more intuitive way to end a Me2Me session, and re-connecting is easy.
*/
remoting.promptClose = function() {
- if (remoting.desktopConnectedView &&
- remoting.desktopConnectedView.getMode() ==
+ var sessionConnector = remoting.app.getSessionConnector();
+ if (sessionConnector &&
+ sessionConnector.getConnectionMode() ===
remoting.DesktopConnectedView.Mode.IT2ME) {
switch (remoting.currentMode) {
case remoting.AppMode.CLIENT_CONNECTING:
« no previous file with comments | « remoting/webapp/crd/js/desktop_viewport.js ('k') | remoting/webapp/crd/js/session_connector_impl.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698