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

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

Issue 837113003: Fix host delete. Delete always returns a 204 (empty response), which will throw an "authentication … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge Created 5 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
« no previous file with comments | « remoting/webapp/crd/js/host_list_api_impl.js ('k') | remoting/webapp/crd/js/xhr.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/crd/js/oauth2_api_impl.js
diff --git a/remoting/webapp/crd/js/oauth2_api_impl.js b/remoting/webapp/crd/js/oauth2_api_impl.js
index 36d2fdce6c8abdf47ef81d8149d2313809b09e24..5c18ea1776b35ec2d58d5f7e0d1b5d990e96fda4 100644
--- a/remoting/webapp/crd/js/oauth2_api_impl.js
+++ b/remoting/webapp/crd/js/oauth2_api_impl.js
@@ -89,7 +89,7 @@ remoting.OAuth2ApiImpl.prototype.refreshAccessToken = function(
} else {
console.error('Failed to refresh token. Status: ' + xhr.status +
' response: ' + xhr.responseText);
- onError(remoting.Error.fromHttpError(xhr.status));
+ onError(remoting.Error.fromHttpStatus(xhr.status));
}
};
@@ -136,7 +136,7 @@ remoting.OAuth2ApiImpl.prototype.exchangeCodeForTokens = function(
} else {
console.error('Failed to exchange code for token. Status: ' + xhr.status +
' response: ' + xhr.responseText);
- onError(remoting.Error.fromHttpError(xhr.status));
+ onError(remoting.Error.fromHttpStatus(xhr.status));
}
};
@@ -174,7 +174,7 @@ remoting.OAuth2ApiImpl.prototype.getEmail = function(onDone, onError, token) {
} else {
console.error('Failed to get email. Status: ' + xhr.status +
' response: ' + xhr.responseText);
- onError(remoting.Error.fromHttpError(xhr.status));
+ onError(remoting.Error.fromHttpStatus(xhr.status));
}
};
var headers = { 'Authorization': 'OAuth ' + token };
@@ -207,7 +207,7 @@ remoting.OAuth2ApiImpl.prototype.getUserInfo =
} else {
console.error('Failed to get user info. Status: ' + xhr.status +
' response: ' + xhr.responseText);
- onError(remoting.Error.fromHttpError(xhr.status));
+ onError(remoting.Error.fromHttpStatus(xhr.status));
}
};
var headers = { 'Authorization': 'OAuth ' + token };
« no previous file with comments | « remoting/webapp/crd/js/host_list_api_impl.js ('k') | remoting/webapp/crd/js/xhr.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698