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

Unified Diff: remoting/webapp/crd/js/session_connector_impl.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 | « remoting/webapp/crd/js/oauth2.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/crd/js/session_connector_impl.js
diff --git a/remoting/webapp/crd/js/session_connector_impl.js b/remoting/webapp/crd/js/session_connector_impl.js
index 68b885b6453383bab5ae163fde9b2c0064151d84..fdbd6f0ccc6b1d7bf30f0ba261f301c90c2d4ac0 100644
--- a/remoting/webapp/crd/js/session_connector_impl.js
+++ b/remoting/webapp/crd/js/session_connector_impl.js
@@ -483,7 +483,10 @@ remoting.SessionConnectorImpl.prototype.onStateChange_ = function(event) {
break;
case remoting.ClientSession.State.CONNECTING:
- console.log('Connecting as ' + remoting.identity.getCachedEmail());
+ remoting.identity.getEmail().then(
+ function(/** string */ email) {
+ console.log('Connecting as ' + email);
+ });
break;
case remoting.ClientSession.State.INITIALIZING:
« no previous file with comments | « remoting/webapp/crd/js/oauth2.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698