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

Unified Diff: remoting/webapp/host_controller.js

Issue 10198006: Trap exceptions calling getDaemonConfig on ChromeOS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 e3ab141a9e83a606f981bcceae9e36820e795f2f..e8db7f6f8387252e2ce81787a98b934322eeea39 100644
--- a/remoting/webapp/host_controller.js
+++ b/remoting/webapp/host_controller.js
@@ -319,7 +319,12 @@ remoting.HostController.prototype.onHostListRefresh =
}
onDone();
};
- this.plugin_.getDaemonConfig(onConfig);
+ try {
+ this.plugin_.getDaemonConfig(onConfig);
+ } catch (err) {
+ this.setHost(null);
+ onDone();
Wez 2012/04/24 02:17:21 nit: You could just onConfig('{}') here.
+ }
};
/** @type {remoting.HostController} */
« 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