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

Unified Diff: remoting/webapp/crd/js/remoting.js

Issue 937593002: Changed identity API to use promises instead of callbacks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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/crd/js/remoting.js
diff --git a/remoting/webapp/crd/js/remoting.js b/remoting/webapp/crd/js/remoting.js
index 97b6a1c42ea70fc2656b212538825d1e0d653230..8b534e41847dae75751b21e9e00f804a506a883b 100644
--- a/remoting/webapp/crd/js/remoting.js
+++ b/remoting/webapp/crd/js/remoting.js
@@ -109,7 +109,7 @@ remoting.promptClose = function() {
* Also clear all local storage, to avoid leaking information.
*/
remoting.signOut = function() {
- remoting.oauth2.removeCachedAuthToken(function(){
+ remoting.oauth2.removeCachedAuthToken().then(function(){
chrome.storage.local.clear();
remoting.setMode(remoting.AppMode.HOME);
window.location.reload();

Powered by Google App Engine
This is Rietveld 408576698