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

Issue 1028683004: Added better error and OAuth support in xhr.js. (Closed)

Created:
5 years, 9 months ago by John Williams
Modified:
5 years, 9 months ago
Reviewers:
Jamie, kelvinp
CC:
chromium-reviews, chromoting-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Added better error and OAuth support in xhr.js. The Xhr class can now use the remoting.Identity API to request OAuth tokens, and it can convert HTTP errors into rejected promises. Also replaced the responseType parameter with the simpler acceptJson parameter. Committed: https://crrev.com/d81682810727f6ae3947f259e7f4400a9df4da76 Cr-Commit-Position: refs/heads/master@{#322307}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Total comments: 22

Patch Set 6 : #

Total comments: 2

Patch Set 7 : #

Patch Set 8 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+450 lines, -235 lines) Patch
M remoting/app_remoting_webapp_files.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M remoting/webapp/crd/js/dns_blackhole_checker.js View 1 2 3 4 5 6 7 2 chunks +7 lines, -4 lines 0 comments Download
M remoting/webapp/crd/js/host_list_api_impl.js View 1 2 3 4 5 6 3 chunks +42 lines, -22 lines 0 comments Download
M remoting/webapp/crd/js/xhr.js View 1 2 3 4 5 6 8 chunks +157 lines, -106 lines 0 comments Download
M remoting/webapp/crd/js/xhr_unittest.js View 1 2 3 4 5 6 4 chunks +228 lines, -100 lines 0 comments Download
M remoting/webapp/js_proto/sinon_proto.js View 1 2 3 4 2 chunks +15 lines, -3 lines 0 comments Download

Messages

Total messages: 15 (3 generated)
John Williams
The diffs in xhr_unittests.js are misleading. What I did was: 1. Removed redundant checks for ...
5 years, 9 months ago (2015-03-21 00:57:41 UTC) #2
rmsousa
drive-by pony request (feel free to ignore) https://codereview.chromium.org/1028683004/diff/60001/remoting/webapp/crd/js/xhr_unittest.js File remoting/webapp/crd/js/xhr_unittest.js (right): https://codereview.chromium.org/1028683004/diff/60001/remoting/webapp/crd/js/xhr_unittest.js#newcode286 remoting/webapp/crd/js/xhr_unittest.js:286: QUnit.test('GET with ...
5 years, 9 months ago (2015-03-21 01:49:56 UTC) #3
John Williams
https://codereview.chromium.org/1028683004/diff/60001/remoting/webapp/crd/js/xhr_unittest.js File remoting/webapp/crd/js/xhr_unittest.js (right): https://codereview.chromium.org/1028683004/diff/60001/remoting/webapp/crd/js/xhr_unittest.js#newcode286 remoting/webapp/crd/js/xhr_unittest.js:286: QUnit.test('GET with param string', function(assert) { On 2015/03/21 01:49:56, ...
5 years, 9 months ago (2015-03-23 19:55:10 UTC) #4
Jamie
https://codereview.chromium.org/1028683004/diff/80001/remoting/webapp/crd/js/xhr.js File remoting/webapp/crd/js/xhr.js (right): https://codereview.chromium.org/1028683004/diff/80001/remoting/webapp/crd/js/xhr.js#newcode81 remoting/webapp/crd/js/xhr.js:81: this.aborted_ = false; Do you need to distinguish between ...
5 years, 9 months ago (2015-03-23 23:11:34 UTC) #6
John Williams
https://codereview.chromium.org/1028683004/diff/80001/remoting/webapp/crd/js/xhr.js File remoting/webapp/crd/js/xhr.js (right): https://codereview.chromium.org/1028683004/diff/80001/remoting/webapp/crd/js/xhr.js#newcode81 remoting/webapp/crd/js/xhr.js:81: this.aborted_ = false; On 2015/03/23 23:11:33, Jamie wrote: > ...
5 years, 9 months ago (2015-03-24 00:52:12 UTC) #7
John Williams
https://codereview.chromium.org/1028683004/diff/80001/remoting/webapp/crd/js/xhr_unittest.js File remoting/webapp/crd/js/xhr_unittest.js (right): https://codereview.chromium.org/1028683004/diff/80001/remoting/webapp/crd/js/xhr_unittest.js#newcode29 remoting/webapp/crd/js/xhr_unittest.js:29: returns(Promise.resolve('my_token')); On 2015/03/24 00:52:12, John Williams wrote: > On ...
5 years, 9 months ago (2015-03-24 17:27:36 UTC) #8
Jamie
https://codereview.chromium.org/1028683004/diff/80001/remoting/webapp/crd/js/xhr.js File remoting/webapp/crd/js/xhr.js (right): https://codereview.chromium.org/1028683004/diff/80001/remoting/webapp/crd/js/xhr.js#newcode81 remoting/webapp/crd/js/xhr.js:81: this.aborted_ = false; On 2015/03/24 00:52:12, John Williams wrote: ...
5 years, 9 months ago (2015-03-24 19:44:11 UTC) #9
John Williams
https://codereview.chromium.org/1028683004/diff/80001/remoting/webapp/crd/js/xhr.js File remoting/webapp/crd/js/xhr.js (right): https://codereview.chromium.org/1028683004/diff/80001/remoting/webapp/crd/js/xhr.js#newcode81 remoting/webapp/crd/js/xhr.js:81: this.aborted_ = false; On 2015/03/24 19:44:11, Jamie wrote: > ...
5 years, 9 months ago (2015-03-24 23:34:41 UTC) #10
Jamie
lgtm
5 years, 9 months ago (2015-03-25 21:25:27 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1028683004/140001
5 years, 9 months ago (2015-03-25 22:27:08 UTC) #13
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 9 months ago (2015-03-26 03:45:29 UTC) #14
commit-bot: I haz the power
5 years, 9 months ago (2015-03-26 03:46:45 UTC) #15
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/d81682810727f6ae3947f259e7f4400a9df4da76
Cr-Commit-Position: refs/heads/master@{#322307}

Powered by Google App Engine
This is Rietveld 408576698