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

Unified Diff: remoting/webapp/crd/js/xhr.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/oauth2_api_impl.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/crd/js/xhr.js
diff --git a/remoting/webapp/crd/js/xhr.js b/remoting/webapp/crd/js/xhr.js
index bb60b87f5949e73db40661a0fbb13596194fe765..d37e7738708eb740dc38afd9f7ef551c6a7eb792 100644
--- a/remoting/webapp/crd/js/xhr.js
+++ b/remoting/webapp/crd/js/xhr.js
@@ -199,7 +199,8 @@ remoting.xhr.defaultResponse = function(onDone, onError) {
/** @param {XMLHttpRequest} xhr */
var result = function(xhr) {
/** @type {remoting.Error} */
- var error = remoting.Error.fromHttpError(/** @type {number} */ (xhr.status))
+ var error =
+ remoting.Error.fromHttpStatus(/** @type {number} */ (xhr.status));
if (error == remoting.Error.NONE) {
onDone();
} else {
« no previous file with comments | « remoting/webapp/crd/js/oauth2_api_impl.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698