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

Unified Diff: remoting/webapp/host_controller.js

Issue 10332234: If getDaemonVersion() fails then log that the host version is not available. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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 c78079c98e8f9844edca0689906210d27062d6a4..364e5c22e8cac305965a8d02136fa3878769bbce 100644
--- a/remoting/webapp/host_controller.js
+++ b/remoting/webapp/host_controller.js
@@ -24,7 +24,11 @@ remoting.HostController = function() {
console.log('Host version:', version);
}
};
- this.plugin_.getDaemonVersion(printVersion);
+ try {
+ this.plugin_.getDaemonVersion(printVersion);
+ } catch (err) {
+ console.log('Host version not available.');
Jamie 2012/05/18 01:13:35 Optional: I think I'd just call printVersion('')
+ }
};
// Note that the values in the enums below are copied from
« 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