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

Issue 19967005: Simplifying using tasks (Closed)

Created:
7 years, 5 months ago by vadimt
Modified:
7 years, 5 months ago
CC:
chromium-reviews, arv+watch_chromium.org, stromme
Visibility:
Public.

Description

Simplifying using tasks. Now: 1. debugSetStepName is not needed 2. No need to call a completion callback when a task ends. To minimize conflicts with pending changes, debugSetStepName and task callback are still defined, but do nothing. They will be removed opportunistically. New code shouldn't use them. BUG=164227 TEST=No; this is a code cleanup. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=213844

Patch Set 1 #

Patch Set 2 : Fixing upload glitch #

Total comments: 4

Patch Set 3 : skare's notes #

Patch Set 4 : Fixing branch hierarchy glitch #

Total comments: 6

Patch Set 5 : More notes. #

Total comments: 6

Patch Set 6 : More comments. #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -34 lines) Patch
M chrome/browser/resources/google_now/utility.js View 1 2 3 4 5 6 chunks +74 lines, -34 lines 4 comments Download

Messages

Total messages: 19 (0 generated)
vadimt
7 years, 5 months ago (2013-07-22 19:40:27 UTC) #1
skare_
https://codereview.chromium.org/19967005/diff/2001/chrome/browser/resources/google_now/utility.js File chrome/browser/resources/google_now/utility.js (right): https://codereview.chromium.org/19967005/diff/2001/chrome/browser/resources/google_now/utility.js#newcode105 chrome/browser/resources/google_now/utility.js:105: if (taskPendingCallbackCount == 0) does this need to be ...
7 years, 5 months ago (2013-07-22 23:09:54 UTC) #2
vadimt
Answered. Note that I've done 2 uploads this time. https://codereview.chromium.org/19967005/diff/2001/chrome/browser/resources/google_now/utility.js File chrome/browser/resources/google_now/utility.js (right): https://codereview.chromium.org/19967005/diff/2001/chrome/browser/resources/google_now/utility.js#newcode105 chrome/browser/resources/google_now/utility.js:105: ...
7 years, 5 months ago (2013-07-22 23:59:59 UTC) #3
skare_
https://codereview.chromium.org/19967005/diff/9001/chrome/browser/resources/google_now/utility.js File chrome/browser/resources/google_now/utility.js (right): https://codereview.chromium.org/19967005/diff/9001/chrome/browser/resources/google_now/utility.js#newcode69 chrome/browser/resources/google_now/utility.js:69: * Not yet called required callbacks. Includes both task ...
7 years, 5 months ago (2013-07-23 20:02:30 UTC) #4
vadimt
Also rebasing. https://codereview.chromium.org/19967005/diff/9001/chrome/browser/resources/google_now/utility.js File chrome/browser/resources/google_now/utility.js (right): https://codereview.chromium.org/19967005/diff/9001/chrome/browser/resources/google_now/utility.js#newcode69 chrome/browser/resources/google_now/utility.js:69: * Not yet called required callbacks. Includes ...
7 years, 5 months ago (2013-07-23 20:10:02 UTC) #5
skare_
code looks good, couple of high level comments https://codereview.chromium.org/19967005/diff/14001/chrome/browser/resources/google_now/utility.js File chrome/browser/resources/google_now/utility.js (right): https://codereview.chromium.org/19967005/diff/14001/chrome/browser/resources/google_now/utility.js#newcode82 chrome/browser/resources/google_now/utility.js:82: var ...
7 years, 5 months ago (2013-07-23 21:10:52 UTC) #6
vadimt
https://codereview.chromium.org/19967005/diff/14001/chrome/browser/resources/google_now/utility.js File chrome/browser/resources/google_now/utility.js (right): https://codereview.chromium.org/19967005/diff/14001/chrome/browser/resources/google_now/utility.js#newcode82 chrome/browser/resources/google_now/utility.js:82: var isInTask = false; On 2013/07/23 21:10:52, Travis Skare ...
7 years, 5 months ago (2013-07-23 22:35:50 UTC) #7
rgustafson
https://codereview.chromium.org/19967005/diff/9001/chrome/browser/resources/google_now/utility.js File chrome/browser/resources/google_now/utility.js (right): https://codereview.chromium.org/19967005/diff/9001/chrome/browser/resources/google_now/utility.js#newcode216 chrome/browser/resources/google_now/utility.js:216: if (isInTask) Why not isTaskCallback here too? https://codereview.chromium.org/19967005/diff/14001/chrome/browser/resources/google_now/utility.js File ...
7 years, 5 months ago (2013-07-24 19:53:01 UTC) #8
vadimt
https://codereview.chromium.org/19967005/diff/9001/chrome/browser/resources/google_now/utility.js File chrome/browser/resources/google_now/utility.js (right): https://codereview.chromium.org/19967005/diff/9001/chrome/browser/resources/google_now/utility.js#newcode216 chrome/browser/resources/google_now/utility.js:216: if (isInTask) On 2013/07/24 19:53:01, rgustafson wrote: > Why ...
7 years, 5 months ago (2013-07-24 20:01:00 UTC) #9
rgustafson
lgtm
7 years, 5 months ago (2013-07-24 20:22:34 UTC) #10
skare_
lgtm
7 years, 5 months ago (2013-07-24 22:21:40 UTC) #11
vadimt
arv@, please provide OWNER's approval
7 years, 5 months ago (2013-07-24 22:22:45 UTC) #12
arv (Not doing code reviews)
LGTM https://codereview.chromium.org/19967005/diff/22001/chrome/browser/resources/google_now/utility.js File chrome/browser/resources/google_now/utility.js (right): https://codereview.chromium.org/19967005/diff/22001/chrome/browser/resources/google_now/utility.js#newcode106 chrome/browser/resources/google_now/utility.js:106: if (taskPendingCallbackCount == 0) if (!taskPendingCallbackCount) https://codereview.chromium.org/19967005/diff/22001/chrome/browser/resources/google_now/utility.js#newcode291 chrome/browser/resources/google_now/utility.js:291: ...
7 years, 5 months ago (2013-07-24 23:10:19 UTC) #13
vadimt
https://codereview.chromium.org/19967005/diff/22001/chrome/browser/resources/google_now/utility.js File chrome/browser/resources/google_now/utility.js (right): https://codereview.chromium.org/19967005/diff/22001/chrome/browser/resources/google_now/utility.js#newcode106 chrome/browser/resources/google_now/utility.js:106: if (taskPendingCallbackCount == 0) On 2013/07/24 23:10:19, arv wrote: ...
7 years, 5 months ago (2013-07-25 00:25:09 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vadimt@chromium.org/19967005/22001
7 years, 5 months ago (2013-07-25 00:30:52 UTC) #15
vadimt
OK, arv@ is OOF. I'm landing this without making requested changes. I'll follow up with ...
7 years, 5 months ago (2013-07-25 20:19:29 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vadimt@chromium.org/19967005/22001
7 years, 5 months ago (2013-07-25 20:51:03 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vadimt@chromium.org/19967005/22001
7 years, 5 months ago (2013-07-26 01:36:08 UTC) #18
commit-bot: I haz the power
7 years, 5 months ago (2013-07-26 11:37:37 UTC) #19
Message was sent while issue was closed.
Change committed as 213844

Powered by Google App Engine
This is Rietveld 408576698