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

Unified Diff: remoting/webapp/host_controller.js

Issue 11769002: Apps v2 identity integration. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 11 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_controller.js
diff --git a/remoting/webapp/host_controller.js b/remoting/webapp/host_controller.js
index 68e538d85270c44e5b096804982a0e3894b5ccd6..5f04bce2289f892ae63214329f55ebf5ccf92976 100644
--- a/remoting/webapp/host_controller.js
+++ b/remoting/webapp/host_controller.js
@@ -144,7 +144,7 @@ remoting.HostController.prototype.start = function(hostPin, consent, callback) {
var hostSecretHash =
that.plugin_.getPinHash(newHostId, hostPin);
var hostConfig = JSON.stringify({
- xmpp_login: remoting.oauth2.getCachedEmail(),
+ xmpp_login: remoting.identity.getCachedEmail(),
oauth_refresh_token: remoting.oauth2.exportRefreshToken(),
host_id: newHostId,
host_name: hostName,
@@ -190,7 +190,7 @@ remoting.HostController.prototype.start = function(hostPin, consent, callback) {
/** @param {string} privateKey
* @param {string} publicKey */
function onKeyGenerated(privateKey, publicKey) {
- remoting.oauth2.callWithToken(
+ remoting.identity.callWithToken(
/** @param {string} oauthToken */
function(oauthToken) {
doRegisterHost(privateKey, publicKey, oauthToken);

Powered by Google App Engine
This is Rietveld 408576698