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

Issue 187263002: Refactor Authenticated Server Requests to use Promises (Closed)

Created:
6 years, 9 months ago by robliao
Modified:
6 years, 9 months ago
Reviewers:
vadimt, rgustafson, skare_
CC:
chromium-reviews, arv+watch_chromium.org
Visibility:
Public.

Description

Refactor Authenticated Server Requests to use Promises BUG=164227 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=256902

Patch Set 1 #

Total comments: 8

Patch Set 2 : Fix Bug #

Total comments: 6

Patch Set 3 : Clarify the scoping #

Total comments: 2

Patch Set 4 : CR Feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -59 lines) Patch
M chrome/browser/resources/google_now/background.js View 1 2 3 6 chunks +43 lines, -55 lines 0 comments Download
M chrome/browser/resources/google_now/utility.js View 2 chunks +6 lines, -4 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
robliao
6 years, 9 months ago (2014-03-05 00:47:19 UTC) #1
rgustafson
https://codereview.chromium.org/187263002/diff/1/chrome/browser/resources/google_now/background.js File chrome/browser/resources/google_now/background.js (right): https://codereview.chromium.org/187263002/diff/1/chrome/browser/resources/google_now/background.js#newcode253 chrome/browser/resources/google_now/background.js:253: * @param {string} handlerName Server handler to send the ...
6 years, 9 months ago (2014-03-07 00:53:05 UTC) #2
robliao
https://codereview.chromium.org/187263002/diff/1/chrome/browser/resources/google_now/background.js File chrome/browser/resources/google_now/background.js (right): https://codereview.chromium.org/187263002/diff/1/chrome/browser/resources/google_now/background.js#newcode253 chrome/browser/resources/google_now/background.js:253: * @param {string} handlerName Server handler to send the ...
6 years, 9 months ago (2014-03-07 01:39:39 UTC) #3
robliao
6 years, 9 months ago (2014-03-11 00:11:14 UTC) #4
rgustafson
https://codereview.chromium.org/187263002/diff/1/chrome/browser/resources/google_now/background.js File chrome/browser/resources/google_now/background.js (right): https://codereview.chromium.org/187263002/diff/1/chrome/browser/resources/google_now/background.js#newcode265 chrome/browser/resources/google_now/background.js:265: }, false); On 2014/03/07 01:39:40, robliao wrote: > Given ...
6 years, 9 months ago (2014-03-11 21:29:30 UTC) #5
robliao
https://codereview.chromium.org/187263002/diff/1/chrome/browser/resources/google_now/background.js File chrome/browser/resources/google_now/background.js (right): https://codereview.chromium.org/187263002/diff/1/chrome/browser/resources/google_now/background.js#newcode265 chrome/browser/resources/google_now/background.js:265: }, false); Instead we'll wonder what the default is ...
6 years, 9 months ago (2014-03-12 00:13:10 UTC) #6
skare_
https://codereview.chromium.org/187263002/diff/20001/chrome/browser/resources/google_now/background.js File chrome/browser/resources/google_now/background.js (right): https://codereview.chromium.org/187263002/diff/20001/chrome/browser/resources/google_now/background.js#newcode268 chrome/browser/resources/google_now/background.js:268: requestPromise.then(function(request) { On 2014/03/12 00:13:11, robliao wrote: > JS ...
6 years, 9 months ago (2014-03-12 19:01:34 UTC) #7
robliao
https://codereview.chromium.org/187263002/diff/20001/chrome/browser/resources/google_now/background.js File chrome/browser/resources/google_now/background.js (right): https://codereview.chromium.org/187263002/diff/20001/chrome/browser/resources/google_now/background.js#newcode268 chrome/browser/resources/google_now/background.js:268: requestPromise.then(function(request) { There's no shadowing. They're actually in different ...
6 years, 9 months ago (2014-03-12 19:49:53 UTC) #8
robliao
https://codereview.chromium.org/187263002/diff/20001/chrome/browser/resources/google_now/background.js File chrome/browser/resources/google_now/background.js (right): https://codereview.chromium.org/187263002/diff/20001/chrome/browser/resources/google_now/background.js#newcode268 chrome/browser/resources/google_now/background.js:268: requestPromise.then(function(request) { Clarifying the scoping... On 2014/03/12 19:49:53, robliao ...
6 years, 9 months ago (2014-03-12 20:29:25 UTC) #9
skare_
lgtm https://codereview.chromium.org/187263002/diff/20001/chrome/browser/resources/google_now/background.js File chrome/browser/resources/google_now/background.js (right): https://codereview.chromium.org/187263002/diff/20001/chrome/browser/resources/google_now/background.js#newcode268 chrome/browser/resources/google_now/background.js:268: requestPromise.then(function(request) { yep this solves it. I was ...
6 years, 9 months ago (2014-03-12 21:07:23 UTC) #10
rgustafson
lgtm https://codereview.chromium.org/187263002/diff/40001/chrome/browser/resources/google_now/background.js File chrome/browser/resources/google_now/background.js (right): https://codereview.chromium.org/187263002/diff/40001/chrome/browser/resources/google_now/background.js#newcode253 chrome/browser/resources/google_now/background.js:253: * @param {XMLHttpRequest} request XMLHTTPRequest that sent the ...
6 years, 9 months ago (2014-03-12 21:26:27 UTC) #11
robliao
vadimt: Please provide owner approval of this CL. https://codereview.chromium.org/187263002/diff/40001/chrome/browser/resources/google_now/background.js File chrome/browser/resources/google_now/background.js (right): https://codereview.chromium.org/187263002/diff/40001/chrome/browser/resources/google_now/background.js#newcode253 chrome/browser/resources/google_now/background.js:253: * ...
6 years, 9 months ago (2014-03-12 22:21:31 UTC) #12
vadimt
lgtm
6 years, 9 months ago (2014-03-13 01:56:27 UTC) #13
robliao
The CQ bit was checked by robliao@chromium.org
6 years, 9 months ago (2014-03-13 17:08:52 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/robliao@chromium.org/187263002/40002
6 years, 9 months ago (2014-03-13 17:09:11 UTC) #15
commit-bot: I haz the power
6 years, 9 months ago (2014-03-13 20:04:21 UTC) #16
Message was sent while issue was closed.
Change committed as 256902

Powered by Google App Engine
This is Rietveld 408576698