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

Unified Diff: remoting/webapp/remoting.js

Issue 9664013: Hide daemon UI initially. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Continue initialization after cancelling me2me. Created 8 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 | « remoting/webapp/main.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/remoting.js
diff --git a/remoting/webapp/remoting.js b/remoting/webapp/remoting.js
index a8ca35e6cbf032898bded2e497f732a04126f468..6e729cd3aacf7b6bdc0ee16812bb36c79fa30237 100644
--- a/remoting/webapp/remoting.js
+++ b/remoting/webapp/remoting.js
@@ -64,6 +64,12 @@ remoting.init = function() {
}
// No valid URL parameters, start up normally.
+ remoting.initNonSession();
+};
+
+// initNonSession is called if the app is not starting up in session mode, and
+// also if the user cancels the connection in session mode.2
+remoting.initNonSession = function () {
remoting.daemonPlugin = new remoting.DaemonPlugin();
remoting.daemonPlugin.updateDom();
remoting.setMode(getAppStartupMode_());
« no previous file with comments | « remoting/webapp/main.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698