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

Unified Diff: remoting/webapp/host_controller.js

Issue 10855182: [Chromoting] The webapp should consider the host being enabled when the serice is starting. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/host_controller.js
diff --git a/remoting/webapp/host_controller.js b/remoting/webapp/host_controller.js
index 8fd69a69da9d40632d6f24d7fe4bd0f9e173aaea..fd1019cafc70c1b43195e443e63e0a06a7b43f99 100644
--- a/remoting/webapp/host_controller.js
+++ b/remoting/webapp/host_controller.js
@@ -80,7 +80,8 @@ remoting.HostController.prototype.getConsent = function(callback) {
remoting.HostController.prototype.updateDom = function() {
var match = '';
var state = this.state();
- var enabled = (state == remoting.HostController.State.STARTED);
+ var enabled = (state == remoting.HostController.State.STARTING) ||
+ (state == remoting.HostController.State.STARTED);
var supported = (state != remoting.HostController.State.NOT_IMPLEMENTED);
remoting.updateModalUi(enabled ? 'enabled' : 'disabled', 'data-daemon-state');
document.getElementById('daemon-control').hidden = !supported;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698