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

Unified Diff: remoting/webapp/base/js/application.js

Issue 1082383002: [Webapp Refactor] Remove remoting.clientSession. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix browser tests Created 5 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
Index: remoting/webapp/base/js/application.js
diff --git a/remoting/webapp/base/js/application.js b/remoting/webapp/base/js/application.js
index 4e79fccb3e82f2ad4c133329008d49c568352075..5b6768b2044843d54a834a4acbab6f9818a74228 100644
--- a/remoting/webapp/base/js/application.js
+++ b/remoting/webapp/base/js/application.js
@@ -57,14 +57,6 @@ remoting.Application.prototype.setConnectionMode = function(mode) {
this.connectionMode_ = mode;
};
-/* Disconnect the remoting client. */
-remoting.Application.prototype.disconnect = function() {
- if (remoting.clientSession) {
- remoting.clientSession.disconnect(remoting.Error.none());
- console.log('Disconnected.');
- }
-};
-
/* Public method to exit the application. */
remoting.Application.prototype.quit = function() {
this.exitApplication_();
@@ -111,7 +103,14 @@ remoting.Application.prototype.start = function() {
/** @return {string} */
remoting.Application.prototype.getApplicationName = function() {
- base.debug.assert(false, "Subclass must override");
+ base.debug.assert(false, 'Subclass must override');
+};
+
+/**
+ * @return {remoting.Activity} The Current activity.
+ */
+remoting.Application.prototype.getActivity = function() {
+ base.debug.assert(false, 'Subclass must override');
};
/**
@@ -119,12 +118,12 @@ remoting.Application.prototype.getApplicationName = function() {
* @protected
*/
remoting.Application.prototype.signInFailed_ = function(error) {
- base.debug.assert(false, "Subclass must override");
+ base.debug.assert(false, 'Subclass must override');
};
/** @protected */
remoting.Application.prototype.initApplication_ = function() {
- base.debug.assert(false, "Subclass must override");
+ base.debug.assert(false, 'Subclass must override');
};
/**
@@ -132,12 +131,12 @@ remoting.Application.prototype.initApplication_ = function() {
* @protected
*/
remoting.Application.prototype.startApplication_ = function(token) {
- base.debug.assert(false, "Subclass must override");
+ base.debug.assert(false, 'Subclass must override');
};
/** @protected */
remoting.Application.prototype.exitApplication_ = function() {
- base.debug.assert(false, "Subclass must override");
+ base.debug.assert(false, 'Subclass must override');
};
/**
« no previous file with comments | « remoting/webapp/app_remoting/js/app_remoting_activity.js ('k') | remoting/webapp/browser_test/browser_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698