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

Unified Diff: remoting/webapp/crd/js/activation_handler.js

Issue 1370283004: [Chromoting] Remote Assistance in Public Session. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@PublicSession
Patch Set: Reviewer's feedback Created 5 years, 3 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/activation_handler.js
diff --git a/remoting/webapp/crd/js/activation_handler.js b/remoting/webapp/crd/js/activation_handler.js
index 901dde9f7562545b064557fbd1b249763b31bf8e..0b79bc1c1a85c5981672738dcdefea9d782f8841 100644
--- a/remoting/webapp/crd/js/activation_handler.js
+++ b/remoting/webapp/crd/js/activation_handler.js
@@ -95,10 +95,15 @@ remoting.ActivationHandler.prototype.onRestart_ = function(id) {
};
/**
+ * @param {Event} launchData
* @private
*/
-remoting.ActivationHandler.prototype.onLaunched_ = function() {
- this.createWindow_();
+remoting.ActivationHandler.prototype.onLaunched_ = function(launchData) {
+ if (launchData['isPublicSession']) {
+ this.launchPublicSession_();
Jamie 2015/09/30 20:24:09 We're not really launching a public session; we're
kelvinp 2015/09/30 23:13:49 Done.
+ } else {
+ this.createWindow_();
+ }
};
/**
@@ -144,6 +149,15 @@ remoting.ActivationHandler.prototype.onWindowClosed_ = function(id) {
this.raiseEvent(remoting.ActivationHandler.Events.windowClosed, id);
};
+/** @private */
+remoting.ActivationHandler.prototype.launchPublicSession_ = function() {
+ chrome.app.window.create("public_session.html", {
+ 'width': 570,
+ 'height': 300,
+ 'resizable': false
+ });
+};
+
})();
/** @enum {string} */

Powered by Google App Engine
This is Rietveld 408576698