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

Unified Diff: remoting/webapp/host_screen.js

Issue 11769002: Apps v2 identity integration. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reviewer comments. Created 7 years, 12 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
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()),
token,
onNatTraversalPolicyChanged_,
onHostStateChanged_,

Powered by Google App Engine
This is Rietveld 408576698