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

Unified Diff: remoting/webapp/browser_test/mock_host_list_api.js

Issue 955283002: Converted remoting.Error from an enum to a class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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/base/js/application.js ('k') | remoting/webapp/browser_test/mock_identity.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/browser_test/mock_host_list_api.js
diff --git a/remoting/webapp/browser_test/mock_host_list_api.js b/remoting/webapp/browser_test/mock_host_list_api.js
index 1d37941420f6b3ddd0363474bc5d07062c1bbdc1..87e5fa93208cd8416bb5e332b2e70579b7ab63df 100644
--- a/remoting/webapp/browser_test/mock_host_list_api.js
+++ b/remoting/webapp/browser_test/mock_host_list_api.js
@@ -71,7 +71,7 @@ remoting.MockHostListApi.prototype.put =
}
console.error('PUT request for unknown host: ' + hostId +
' (' + hostName + ')');
- onError(remoting.Error.UNEXPECTED);
+ onError(remoting.Error.unexpected());
};
remoting.mockIdentity.validateTokenAndCall(onTokenValid, onError, []);
};
@@ -95,7 +95,7 @@ remoting.MockHostListApi.prototype.remove =
}
}
console.error('DELETE request for unknown host: ' + hostId);
- onError(remoting.Error.UNEXPECTED);
+ onError(remoting.Error.unexpected());
};
remoting.mockIdentity.validateTokenAndCall(onTokenValid, onError, []);
};
« no previous file with comments | « remoting/webapp/base/js/application.js ('k') | remoting/webapp/browser_test/mock_identity.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698