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

Unified Diff: remoting/webapp/host_list.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_list.js
diff --git a/remoting/webapp/host_list.js b/remoting/webapp/host_list.js
index 9d8353f0d7108be37db55ed2124b6543615c60f6..4c4c06574b7d97cc7fe444b748eb32bb3a54fcfa 100644
--- a/remoting/webapp/host_list.js
+++ b/remoting/webapp/host_list.js
@@ -142,7 +142,7 @@ remoting.HostList.prototype.refresh = function(onDone) {
that.lastError_ = error;
onDone(false);
};
- remoting.oauth2.callWithToken(getHosts, onError);
+ remoting.identity.callWithToken(getHosts, onError);
};
/**
@@ -312,7 +312,7 @@ remoting.HostList.prototype.renameHost_ = function(hostTableEntry) {
console.error('Could not rename host. Authentication failure.');
}
}
- remoting.oauth2.callWithToken(renameHost, remoting.showErrorMessage);
+ remoting.identity.callWithToken(renameHost, remoting.showErrorMessage);
};
/**
@@ -328,7 +328,7 @@ remoting.HostList.unregisterHostById = function(hostId) {
'https://www.googleapis.com/chromoting/v1/@me/hosts/' + hostId,
function() {}, '', headers);
}
- remoting.oauth2.callWithToken(deleteHost, remoting.showErrorMessage);
+ remoting.identity.callWithToken(deleteHost, remoting.showErrorMessage);
};
/**

Powered by Google App Engine
This is Rietveld 408576698