Index: remoting/webapp/host_screen.js |
diff --git a/remoting/webapp/host_screen.js b/remoting/webapp/host_screen.js |
index 9906d6e8e8781fbf129c3af4888eb52c466c4d10..df4008b47b682a20b4250704e9bf91a898e1a698 100644 |
--- a/remoting/webapp/host_screen.js |
+++ b/remoting/webapp/host_screen.js |
@@ -26,8 +26,8 @@ var lastShareWasCancelled_ = false; |
*/ |
remoting.tryShare = function() { |
console.log('Attempting to share...'); |
- remoting.oauth2.callWithToken(remoting.tryShareWithToken_, |
- remoting.showErrorMessage); |
+ remoting.identity.callWithToken(remoting.tryShareWithToken_, |
+ remoting.showErrorMessage); |
}; |
/** |
@@ -45,7 +45,7 @@ remoting.tryShareWithToken_ = function(token) { |
remoting.hostSession = new remoting.HostSession(); |
remoting.hostSession.createPluginAndConnect( |
document.getElementById('host-plugin-container'), |
- /** @type {string} */(remoting.oauth2.getCachedEmail()), |
+ /** @type {string} */(remoting.identity.getCachedEmail()), |
Wez
2013/01/05 00:04:24
nit: Do we still need this type annotation here?
Jamie
2013/01/05 01:32:54
Yes, getCachedEmail can return null if we're not a
|
token, |
onNatTraversalPolicyChanged_, |
onHostStateChanged_, |