diff options
author | kelvinp <kelvinp@chromium.org> | 2015-05-27 14:39:25 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-05-27 21:39:50 +0000 |
commit | c1be51164d32964c5626e37ed36808b53285ee98 (patch) | |
tree | a4f236fd1fc9374f69b2c0ca06ccf860ded53ac4 /remoting/webapp/base/js/modal_dialogs.js | |
parent | 74c8686c4fce493e7ba199a3eca515525d4a10f6 (diff) | |
download | chromium_src-c1be51164d32964c5626e37ed36808b53285ee98.zip chromium_src-c1be51164d32964c5626e37ed36808b53285ee98.tar.gz chromium_src-c1be51164d32964c5626e37ed36808b53285ee98.tar.bz2 |
[AppRemoting] Auto reconnect dropped connection if we are online.
Summary of changes:
1. Pulls ConnectionDroppedDialog from AppRemotingActivity into its own class.
2. Implements a 10 second timer to auto reconnect a dropped connection.
BUG=486888
Review URL: https://codereview.chromium.org/1152103002
Cr-Commit-Position: refs/heads/master@{#331658}
Diffstat (limited to 'remoting/webapp/base/js/modal_dialogs.js')
-rw-r--r-- | remoting/webapp/base/js/modal_dialogs.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/remoting/webapp/base/js/modal_dialogs.js b/remoting/webapp/base/js/modal_dialogs.js index f6fa0cd..51703b2 100644 --- a/remoting/webapp/base/js/modal_dialogs.js +++ b/remoting/webapp/base/js/modal_dialogs.js @@ -196,6 +196,9 @@ remoting.Html5ModalDialog = function(params) { }; remoting.Html5ModalDialog.prototype.dispose = function() { + if (this.dialog_.open) { + this.close(remoting.MessageDialog.Result.CANCEL); + } base.dispose(this.eventHooks_); this.eventHookes_ = null; }; |