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

Unified Diff: remoting/webapp/host_controller.js

Issue 160963003: Minor cleanups in UI code that gets host state when webapp is stared (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 | remoting/webapp/host_list.js » ('j') | 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 f780be717657bb06e5bfbfc8671370ac1b7e17f4..3fad0d2df5ef2596563ebb191a6a8d56c2a515ff 100644
--- a/remoting/webapp/host_controller.js
+++ b/remoting/webapp/host_controller.js
@@ -406,8 +406,10 @@ remoting.HostController.prototype.updatePin = function(newPin, onDone,
* callback.
*/
remoting.HostController.prototype.getLocalHostState = function(onDone) {
- this.hostDispatcher_.getDaemonState(onDone, function() {
- onDone(remoting.HostController.State.NOT_IMPLEMENTED);
+ this.hostDispatcher_.getDaemonState(onDone, function(error) {
+ onDone(remoting.isMe2MeInstallable()
+ ? remoting.HostController.State.NOT_INSTALLED
+ : remoting.HostController.State.NOT_IMPLEMENTED);
});
};
« no previous file with comments | « no previous file | remoting/webapp/host_list.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698