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

Unified Diff: remoting/webapp/app_remoting/js/app_remoting.js

Issue 988963003: Add Application.Delegate.stop. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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/base/js/application.js » ('j') | remoting/webapp/base/js/application.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/app_remoting/js/app_remoting.js
diff --git a/remoting/webapp/app_remoting/js/app_remoting.js b/remoting/webapp/app_remoting/js/app_remoting.js
index fb14f6d06827f24e5a6490fff0a577a5fba0002d..d5cdd94dddd1146be06dc8826015a5e3e29f2f3c 100644
--- a/remoting/webapp/app_remoting/js/app_remoting.js
+++ b/remoting/webapp/app_remoting/js/app_remoting.js
@@ -184,12 +184,14 @@ remoting.AppRemoting.prototype.start = function(connector, token) {
* @param {remoting.Error} error The failure reason.
*/
remoting.AppRemoting.prototype.signInFailed = function(error) {
- if (error == remoting.Error.CANCELLED) {
- chrome.app.window.current().close();
- remoting.LoadingWindow.close();
- } else {
- this.handleError(error);
- }
+ this.handleError(error);
+};
+
+/**
+ * Close the loading window before exiting.
+ */
+remoting.AppRemoting.prototype.stop = function() {
+ remoting.LoadingWindow.close();
};
/**
« no previous file with comments | « no previous file | remoting/webapp/base/js/application.js » ('j') | remoting/webapp/base/js/application.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698