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

Unified Diff: remoting/webapp/crd/js/desktop_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
Index: remoting/webapp/crd/js/desktop_remoting.js
diff --git a/remoting/webapp/crd/js/desktop_remoting.js b/remoting/webapp/crd/js/desktop_remoting.js
index 6eb06260103f703d92681c70e379de3864263f8d..94df8ff94914a1697fa00c38f3e334db6a1d8350 100644
--- a/remoting/webapp/crd/js/desktop_remoting.js
+++ b/remoting/webapp/crd/js/desktop_remoting.js
@@ -134,17 +134,19 @@ remoting.DesktopRemoting.prototype.start = function(connector, token) {
};
/**
+ * No cleanup required for desktop remoting.
+ */
+remoting.DesktopRemoting.prototype.stop = function() {
+};
+
+/**
* Report an authentication error to the user. This is called in lieu of start()
* if the user cannot be authenticated or if they decline the app permissions.
*
* @param {remoting.Error} error The failure reason.
*/
remoting.DesktopRemoting.prototype.signInFailed = function(error) {
- if (error == remoting.Error.CANCELLED) {
- chrome.app.window.current().close();
- } else {
- remoting.showErrorMessage(error);
- }
+ remoting.showErrorMessage(error);
};
/**

Powered by Google App Engine
This is Rietveld 408576698