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

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

Issue 963103004: Remove getCached* methods from remoting.Identity. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and jscompile fixes. Created 5 years, 10 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/crd/js/host_controller.js » ('j') | no next file with comments »
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 2aab7393bc664c590621f172a743b74878ba8d23..22e79e26dcb5e5149872f2d3a12529b7b0b07fb0 100644
--- a/remoting/webapp/app_remoting/js/app_remoting.js
+++ b/remoting/webapp/app_remoting/js/app_remoting.js
@@ -238,9 +238,12 @@ remoting.AppRemoting.prototype.getDefaultRemapKeys = function() {
* @return {void} Nothing.
*/
remoting.AppRemoting.prototype.handleConnected = function(clientSession) {
- remoting.clientSession.sendClientMessage(
- 'setUserDisplayInfo',
- JSON.stringify({fullName: remoting.identity.getCachedUserFullName()}));
+ remoting.identity.getUserInfo().then(
+ function(userInfo) {
+ remoting.clientSession.sendClientMessage(
+ 'setUserDisplayInfo',
+ JSON.stringify({fullName: userInfo.name}));
+ });
// Set up a ping at 10-second intervals to test the connection speed.
function ping() {
« no previous file with comments | « no previous file | remoting/webapp/crd/js/host_controller.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698