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

Issue 12161002: MessageLoop's RUN method will pass a const ref to PendingTask when (Closed)

Created:
7 years, 10 months ago by ramant (doing other things)
Modified:
7 years, 10 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, sadrul, achuith+watch_chromium.org, jam, apatrick_chromium, joi+watch-content_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, sail+watch_chromium.org, erikwright+watch_chromium.org
Visibility:
Public.

Description

MessageLoop's RUN method will pass a const ref to PendingTask when TaskObserver's WillProcessTask and DidProcessTask methods are called. User's of TaskObserver get time_posted by accessing pending_task.time_posted. User's of TaskObserver get time_posted by accessing pending_task.time_posted. (would like to use this with SpdySession testing to verify a task is posted or not). R=jar@chromium.org, darin@chromium.org TESTS= all unit tests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=180302

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Patch Set 6 : #

Total comments: 2

Patch Set 7 : #

Patch Set 8 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -46 lines) Patch
M base/message_loop.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M base/message_loop.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M base/message_loop_unittest.cc View 1 2 3 4 5 6 7 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/google_apis/test_util.cc View 1 2 3 4 5 6 7 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/jankometer.cc View 1 2 3 4 5 6 7 3 chunks +7 lines, -6 lines 0 comments Download
M content/browser/browser_main_loop.cc View 1 2 3 4 5 6 7 2 chunks +4 lines, -2 lines 0 comments Download
M content/gpu/gpu_watchdog_thread.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -2 lines 0 comments Download
M content/gpu/gpu_watchdog_thread.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/renderer_main.cc View 1 2 3 4 5 6 7 3 chunks +6 lines, -4 lines 0 comments Download
M media/audio/mac/audio_device_listener_mac.cc View 1 2 3 4 5 6 7 4 chunks +24 lines, -14 lines 0 comments Download
M net/http/http_pipelined_connection_impl_unittest.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M net/http/http_pipelined_network_transaction_unittest.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M webkit/glue/webthread_impl.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
jar (doing other things)
lgtm
7 years, 10 months ago (2013-02-01 23:07:34 UTC) #1
ramant (doing other things)
Hi Darin, Would appreciate if you could take a look at this change. thanks
7 years, 10 months ago (2013-02-01 23:38:01 UTC) #2
darin (slow to review)
https://codereview.chromium.org/12161002/diff/9019/media/audio/mac/audio_device_listener_mac.cc File media/audio/mac/audio_device_listener_mac.cc (right): https://codereview.chromium.org/12161002/diff/9019/media/audio/mac/audio_device_listener_mac.cc#newcode33 media/audio/mac/audio_device_listener_mac.cc:33: base::PendingTask pending_task(CreateQuitPendingTask()); why create a Quit task here? why ...
7 years, 10 months ago (2013-02-02 00:32:46 UTC) #3
ramant (doing other things)
Many many thanks for your quick review and comments. Made the changes you have suggested. ...
7 years, 10 months ago (2013-02-02 01:38:55 UTC) #4
darin (slow to review)
https://codereview.chromium.org/12161002/diff/38002/media/audio/mac/audio_device_listener_mac.cc File media/audio/mac/audio_device_listener_mac.cc (right): https://codereview.chromium.org/12161002/diff/38002/media/audio/mac/audio_device_listener_mac.cc#newcode44 media/audio/mac/audio_device_listener_mac.cc:44: if (message_loop_->message_loop_proxy()->BelongsToCurrentThread()) { By the way, and sorry for ...
7 years, 10 months ago (2013-02-02 07:05:23 UTC) #5
ramant (doing other things)
Would appreciate if you could take another look. thanks raman https://codereview.chromium.org/12161002/diff/38002/media/audio/mac/audio_device_listener_mac.cc File media/audio/mac/audio_device_listener_mac.cc (right): https://codereview.chromium.org/12161002/diff/38002/media/audio/mac/audio_device_listener_mac.cc#newcode44 ...
7 years, 10 months ago (2013-02-02 18:20:09 UTC) #6
darin (slow to review)
LGTM
7 years, 10 months ago (2013-02-03 04:31:41 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rtenneti@chromium.org/12161002/30006
7 years, 10 months ago (2013-02-03 06:26:01 UTC) #8
commit-bot: I haz the power
7 years, 10 months ago (2013-02-03 08:16:27 UTC) #9
Message was sent while issue was closed.
Change committed as 180302

Powered by Google App Engine
This is Rietveld 408576698