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

Issue 637983003: Add support to base::Timer for custom task runners. (Closed)

Created:
6 years, 2 months ago by petrcermak
Modified:
6 years, 1 month ago
CC:
chromium-reviews, erikwright+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Add support to base::Timer for custom task runners. This patch adds a public method SetTaskRunner(scoped_refptr<SingleThreadTaskRunner>) to base::Timer which changes the task runner used by the timer (ThreadTaskRunnerHandler::Get() by default). This change will enable scheduling timers on the queues of the Blink scheduler (see https://codereview.chromium.org/637303003/). Most importantly, we plan to apply this to the shared timer in blink::Platform. BUG= Committed: https://crrev.com/7652da6d5cbd7e5b82b340e638ebe80aafeacf6e Cr-Commit-Position: refs/heads/master@{#302947}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Update for review feedback #

Total comments: 19

Patch Set 3 : Update for review feedback #

Total comments: 10

Patch Set 4 : Update for review feedback #

Total comments: 8

Patch Set 5 : Final update for review feedback #

Patch Set 6 : Clobber to fix missing NaCl gyp dependencies #

Patch Set 7 : Rebased #

Patch Set 8 : Final rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -4 lines) Patch
M base/timer/timer.h View 1 2 3 4 5 6 4 chunks +14 lines, -0 lines 0 comments Download
M base/timer/timer.cc View 1 2 3 4 3 chunks +12 lines, -2 lines 0 comments Download
M base/timer/timer_unittest.cc View 1 2 3 4 6 chunks +35 lines, -2 lines 0 comments Download
M build/get_landmines.py View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 35 (9 generated)
petrcermak
6 years, 2 months ago (2014-10-13 16:23:27 UTC) #2
Sami
Thanks Petr, looks great! https://codereview.chromium.org/637983003/diff/1/base/timer/timer.h File base/timer/timer.h (right): https://codereview.chromium.org/637983003/diff/1/base/timer/timer.h#newcode91 base/timer/timer.h:91: // Set the task runner ...
6 years, 2 months ago (2014-10-13 17:00:11 UTC) #3
Sami
Oh, and could you expand on the motivation in the commit message? Right now it ...
6 years, 2 months ago (2014-10-13 17:00:50 UTC) #4
petrcermak
Thanks for the comments. I also updated the commit message as suggested. https://codereview.chromium.org/637983003/diff/1/base/timer/timer.h File base/timer/timer.h ...
6 years, 2 months ago (2014-10-13 17:21:41 UTC) #5
Sami
Thanks, lgtm. Let's find an owner to have a look.
6 years, 2 months ago (2014-10-13 17:27:29 UTC) #6
petrcermak
danakj@chromium.org: Hi, could you please review my patch for base::Timer?
6 years, 2 months ago (2014-10-13 17:30:58 UTC) #8
danakj
+avi As the author of this, can you please have a look at this for ...
6 years, 2 months ago (2014-10-16 17:15:00 UTC) #10
Avi (use Gerrit)
On 2014/10/16 17:15:00, danakj wrote: > +avi As the author of this, can you please ...
6 years, 2 months ago (2014-10-16 17:58:30 UTC) #11
Avi (use Gerrit)
Where is the bug #? https://codereview.chromium.org/637983003/diff/110001/base/timer/timer.cc File base/timer/timer.cc (right): https://codereview.chromium.org/637983003/diff/110001/base/timer/timer.cc#newcode97 base/timer/timer.cc:97: DCHECK(scheduled_task_ == NULL && ...
6 years, 2 months ago (2014-10-16 18:02:55 UTC) #12
petrcermak
Thanks for your comments. PTAL. https://codereview.chromium.org/637983003/diff/110001/base/timer/timer.cc File base/timer/timer.cc (right): https://codereview.chromium.org/637983003/diff/110001/base/timer/timer.cc#newcode97 base/timer/timer.cc:97: DCHECK(scheduled_task_ == NULL && ...
6 years, 2 months ago (2014-10-17 15:43:15 UTC) #14
danakj
https://codereview.chromium.org/637983003/diff/110001/base/timer/timer_unittest.cc File base/timer/timer_unittest.cc (right): https://codereview.chromium.org/637983003/diff/110001/base/timer/timer_unittest.cc#newcode164 base/timer/timer_unittest.cc:164: f1.Start(); On 2014/10/17 15:43:15, petrcermak wrote: > On 2014/10/16 ...
6 years, 2 months ago (2014-10-18 19:00:00 UTC) #15
petrcermak
Thanks for your comments. PTAL. https://codereview.chromium.org/637983003/diff/110001/base/timer/timer_unittest.cc File base/timer/timer_unittest.cc (right): https://codereview.chromium.org/637983003/diff/110001/base/timer/timer_unittest.cc#newcode164 base/timer/timer_unittest.cc:164: f1.Start(); On 2014/10/18 18:59:59, ...
6 years, 2 months ago (2014-10-20 12:42:41 UTC) #16
danakj
LGTM https://codereview.chromium.org/637983003/diff/240001/base/timer/timer.h File base/timer/timer.h (right): https://codereview.chromium.org/637983003/diff/240001/base/timer/timer.h#newcode58 base/timer/timer.h:58: #include "base/single_thread_task_runner.h" can this be forward declared in ...
6 years, 2 months ago (2014-10-22 15:07:44 UTC) #17
petrcermak
Thanks for your comments. I will now commit the patch. https://codereview.chromium.org/637983003/diff/240001/base/timer/timer.h File base/timer/timer.h (right): https://codereview.chromium.org/637983003/diff/240001/base/timer/timer.h#newcode58 ...
6 years, 2 months ago (2014-10-23 10:59:37 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/637983003/260001
6 years, 2 months ago (2014-10-23 11:01:08 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: linux_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/linux_gpu/builds/82865) win_chromium_compile_dbg on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg/builds/27415)
6 years, 2 months ago (2014-10-23 11:29:25 UTC) #22
petrcermak
Hi Lei and Mark, Could you please help us diagnose the native client trybot failures ...
6 years, 2 months ago (2014-10-24 14:58:47 UTC) #24
Mark Seaborn
On 24 October 2014 07:58, <petrcermak@chromium.org> wrote: > Hi Lei and Mark, > > Could ...
6 years, 2 months ago (2014-10-24 16:01:17 UTC) #25
Mark Seaborn
On 24 October 2014 09:00, Mark Seaborn <mseaborn@chromium.org> wrote: > On 24 October 2014 07:58, ...
6 years, 2 months ago (2014-10-24 18:33:10 UTC) #26
Mark Seaborn
On 24 October 2014 11:32, Mark Seaborn <mseaborn@chromium.org> wrote: > On 24 October 2014 09:00, ...
6 years, 2 months ago (2014-10-24 23:59:50 UTC) #27
Mark Seaborn
On 24 October 2014 16:59, Mark Seaborn <mseaborn@chromium.org> wrote: > On 24 October 2014 11:32, ...
6 years, 2 months ago (2014-10-25 01:53:09 UTC) #28
Lei Zhang
On 2014/10/24 14:58:47, petrcermak wrote: > Hi Lei and Mark, > > Could you please ...
6 years, 2 months ago (2014-10-25 03:21:16 UTC) #29
petrcermak
On 2014/10/25 01:53:09, Mark Seaborn wrote: > On 24 October 2014 16:59, Mark Seaborn <mailto:mseaborn@chromium.org> ...
6 years, 1 month ago (2014-10-27 09:24:12 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/637983003/340001
6 years, 1 month ago (2014-11-06 00:51:50 UTC) #33
commit-bot: I haz the power
Committed patchset #8 (id:340001)
6 years, 1 month ago (2014-11-06 02:18:04 UTC) #34
commit-bot: I haz the power
6 years, 1 month ago (2014-11-06 02:19:00 UTC) #35
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/7652da6d5cbd7e5b82b340e638ebe80aafeacf6e
Cr-Commit-Position: refs/heads/master@{#302947}

Powered by Google App Engine
This is Rietveld 408576698