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

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

Issue 1020743002: [Chromoting] Move app-specific code out of remoting.js (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/crd/js/crd_event_handlers.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 03d54683e2952a53c32adc98ef46bb4cfa387c55..f95515598f8eadef6ee8f6c571c76b47aedf2485 100644
--- a/remoting/webapp/app_remoting/js/app_remoting.js
+++ b/remoting/webapp/app_remoting/js/app_remoting.js
@@ -184,16 +184,6 @@ remoting.AppRemoting.prototype.start = function(connector, token) {
};
/**
- * 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.AppRemoting.prototype.signInFailed = function(error) {
- this.handleError(error);
-};
-
-/**
* @return {string} Application product name to be used in UI.
*/
remoting.AppRemoting.prototype.getApplicationName = function() {
@@ -359,6 +349,16 @@ remoting.AppRemoting.prototype.handleError = function(error) {
};
/**
+ * 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.AppRemoting.prototype.handleAuthError = function(error) {
+ this.handleError(error);
+};
+
+/**
* Close the loading window before exiting.
*/
remoting.AppRemoting.prototype.handleExit = function() {
« no previous file with comments | « no previous file | remoting/webapp/base/js/application.js » ('j') | remoting/webapp/crd/js/crd_event_handlers.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698