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

Issue 4081003: Added task to Observer methods (Closed)

Created:
10 years, 2 months ago by DaveMoore
Modified:
9 years, 7 months ago
CC:
chromium-reviews, ben+cc_chromium.org, Paweł Hajdan Jr., brettw-cc_chromium.org
Visibility:
Public.

Description

Added task to Observer methods By adding the task to the observer methods and GetBirthPlace() to Tracked it makes it possible to register an observer that can print more information about the tasks as they are being processed. BUG=NONE TEST=MessageLoopTest.* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=63983

Patch Set 1 #

Patch Set 2 : unittest check for non-null Task #

Total comments: 6

Patch Set 3 : Made default birthplace a local static #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -12 lines) Patch
M base/message_loop.h View 1 chunk +2 lines, -2 lines 0 comments Download
M base/message_loop.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M base/message_loop_unittest.cc View 1 1 chunk +4 lines, -2 lines 0 comments Download
M base/tracked.h View 1 chunk +1 line, -0 lines 0 comments Download
M base/tracked.cc View 1 2 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/jankometer.cc View 2 chunks +6 lines, -6 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
DaveMoore
By adding the task to the observer methods and GetBirthPlace() to Tracked it makes it ...
10 years, 2 months ago (2010-10-24 20:51:21 UTC) #1
willchan no longer on Chromium
LGTM, but adding Darin as a reviewer since he usually wants to at least know ...
10 years, 2 months ago (2010-10-24 22:47:09 UTC) #2
willchan no longer on Chromium
Oops, actually add Darin.
10 years, 2 months ago (2010-10-24 22:49:08 UTC) #3
darin (slow to review)
http://codereview.chromium.org/4081003/diff/2001/3002 File base/message_loop.h (right): http://codereview.chromium.org/4081003/diff/2001/3002#newcode75 base/message_loop.h:75: virtual void WillProcessTask(const Task* task) = 0; On 2010/10/24 ...
10 years, 2 months ago (2010-10-25 05:52:10 UTC) #4
willchan no longer on Chromium
http://codereview.chromium.org/4081003/diff/2001/3005 File base/tracked.h (right): http://codereview.chromium.org/4081003/diff/2001/3005#newcode97 base/tracked.h:97: const Location GetBirthPlace() const; On 2010/10/25 05:52:11, darin wrote: ...
10 years, 2 months ago (2010-10-25 06:12:04 UTC) #5
willchan no longer on Chromium
http://codereview.chromium.org/4081003/diff/2001/3002 File base/message_loop.h (right): http://codereview.chromium.org/4081003/diff/2001/3002#newcode75 base/message_loop.h:75: virtual void WillProcessTask(const Task* task) = 0; On 2010/10/25 ...
10 years, 2 months ago (2010-10-25 06:14:39 UTC) #6
darin (slow to review)
On Sun, Oct 24, 2010 at 11:12 PM, <willchan@chromium.org> wrote: > > http://codereview.chromium.org/4081003/diff/2001/3005 > File ...
10 years, 2 months ago (2010-10-25 19:26:20 UTC) #7
willchan no longer on Chromium
On Mon, Oct 25, 2010 at 12:26 PM, Darin Fisher <darin@chromium.org> wrote: > On Sun, ...
10 years, 2 months ago (2010-10-25 20:33:06 UTC) #8
DaveMoore
There was an early LGTM followed by some discussion. I've kept the task as a ...
10 years, 1 month ago (2010-10-26 17:10:43 UTC) #9
darin (slow to review)
10 years, 1 month ago (2010-10-26 21:25:31 UTC) #10
LGTM

Powered by Google App Engine
This is Rietveld 408576698