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

Side by Side Diff: remoting/webapp/crd/js/crd_main.js

Issue 789733010: [Chromoting] Remove initIdentityEmail. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 6 years 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 unified diff | Download patch
« no previous file with comments | « remoting/webapp/base/js/auth_init.js ('k') | remoting/webapp/crd/js/desktop_remoting.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 'use strict'; 5 'use strict';
6 6
7 /** @suppress {duplicate} */ 7 /** @suppress {duplicate} */
8 var remoting = remoting || {}; 8 var remoting = remoting || {};
9 9
10 /** 10 /**
11 * Display the user's email address and allow access to the rest of the app,
12 * including parsing URL parameters.
13 *
14 * @param {string} email The user's email address.
15 * @return {void} Nothing.
16 */
17 remoting.onEmailAvailable = function(email, fullName) {
18 document.getElementById('current-email').innerText = email;
19 document.getElementById('get-started-it2me').disabled = false;
20 document.getElementById('get-started-me2me').disabled = false;
21 };
22
23 /**
24 * Initialize the host list. 11 * Initialize the host list.
25 */ 12 */
26 remoting.initHostlist_ = function() { 13 remoting.initHostlist_ = function() {
27 remoting.hostList = new remoting.HostList( 14 remoting.hostList = new remoting.HostList(
28 document.getElementById('host-list'), 15 document.getElementById('host-list'),
29 document.getElementById('host-list-empty'), 16 document.getElementById('host-list-empty'),
30 document.getElementById('host-list-error-message'), 17 document.getElementById('host-list-error-message'),
31 document.getElementById('host-list-refresh-failed-button'), 18 document.getElementById('host-list-refresh-failed-button'),
32 document.getElementById('host-list-loading-indicator')); 19 document.getElementById('host-list-loading-indicator'));
33 20
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 } 202 }
216 203
217 204
218 remoting.startDesktopRemoting = function() { 205 remoting.startDesktopRemoting = function() {
219 remoting.app = new remoting.Application(); 206 remoting.app = new remoting.Application();
220 var desktop_remoting = new remoting.DesktopRemoting(remoting.app); 207 var desktop_remoting = new remoting.DesktopRemoting(remoting.app);
221 remoting.app.start(); 208 remoting.app.start();
222 }; 209 };
223 210
224 window.addEventListener('load', remoting.startDesktopRemotingForTesting, false); 211 window.addEventListener('load', remoting.startDesktopRemotingForTesting, false);
OLDNEW
« no previous file with comments | « remoting/webapp/base/js/auth_init.js ('k') | remoting/webapp/crd/js/desktop_remoting.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698