| Index: remoting/webapp/crd/js/host_screen.js
|
| diff --git a/remoting/webapp/crd/js/host_screen.js b/remoting/webapp/crd/js/host_screen.js
|
| index 183deb7f1884543312d7222909f8c9531ab3cd36..cb3695d0c272ee5445647a09690325cc4f674abb 100644
|
| --- a/remoting/webapp/crd/js/host_screen.js
|
| +++ b/remoting/webapp/crd/js/host_screen.js
|
| @@ -94,10 +94,12 @@ remoting.tryShareWithToken_ = function(hostFacade, token) {
|
|
|
| base.debug.assert(hostSession_ === null);
|
| hostSession_ = new remoting.HostSession();
|
| - var email = /** @type {string} */ (remoting.identity.getCachedEmail());
|
| - hostSession_.connect(
|
| - hostFacade, email, token, onHostStateChanged_,
|
| - onNatTraversalPolicyChanged_, logDebugInfo_, it2meConnectFailed_);
|
| + remoting.identity.getEmail().then(
|
| + function(/** string */ email) {
|
| + hostSession_.connect(
|
| + hostFacade, email, token, onHostStateChanged_,
|
| + onNatTraversalPolicyChanged_, logDebugInfo_, it2meConnectFailed_);
|
| + });
|
| };
|
|
|
| /**
|
| @@ -336,4 +338,4 @@ function onNatTraversalPolicyChanged_(enabled) {
|
| }
|
| }
|
|
|
| -})();
|
| +})();
|
|
|