summaryrefslogtreecommitdiffstats
path: root/remoting/webapp/event_handlers.js
diff options
context:
space:
mode:
authorsergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-03 08:26:47 +0000
committersergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-03 08:26:47 +0000
commitf600c578e5a4dfd09f04f018a0739cef3d1841d1 (patch)
tree96bfa846b56c9367be0f0801c8b6a83b6db6163b /remoting/webapp/event_handlers.js
parent16bd088b486346f754cb842af1f80b165990883a (diff)
downloadchromium_src-f600c578e5a4dfd09f04f018a0739cef3d1841d1.zip
chromium_src-f600c578e5a4dfd09f04f018a0739cef3d1841d1.tar.gz
chromium_src-f600c578e5a4dfd09f04f018a0739cef3d1841d1.tar.bz2
Add completion callbacks in the DaemonController interface.
BUG=121493,120950 Review URL: http://codereview.chromium.org/9965084 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130342 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/webapp/event_handlers.js')
-rw-r--r--remoting/webapp/event_handlers.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/remoting/webapp/event_handlers.js b/remoting/webapp/event_handlers.js
index 28cf106..e389adf 100644
--- a/remoting/webapp/event_handlers.js
+++ b/remoting/webapp/event_handlers.js
@@ -40,10 +40,6 @@ function onLoad() {
var doAuthRedirect = function() {
remoting.oauth2.doAuthRedirect();
};
- var stopDaemon = function() {
- remoting.daemonPlugin.stop();
- remoting.daemonPlugin.updateDom();
- };
/** @type {Array.<{event: string, id: string, fn: function(Event):void}>} */
var actions = [
{ event: 'click', id: 'clear-oauth', fn: remoting.clearOAuth2 },
@@ -69,7 +65,8 @@ function onLoad() {
fn: function() { remoting.hostSetupDialog.showForStart(); } },
{ event: 'click', id: 'change-daemon-pin',
fn: function() { remoting.hostSetupDialog.showForPin(); } },
- { event: 'click', id: 'stop-daemon', fn: stopDaemon },
+ { event: 'click', id: 'stop-daemon',
+ fn: function() { remoting.hostSetupDialog.showForStop(); } },
{ event: 'submit', id: 'access-code-form', fn: sendAccessCode },
{ event: 'submit', id: 'pin-form', fn: connectHostWithPin },
{ event: 'click', id: 'get-started-it2me',