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

Issue 1013813003: base: Mark MessageLoop::Post*Task API deprecated (Closed)

Created:
5 years, 9 months ago by Sami
Modified:
5 years, 9 months ago
Reviewers:
danakj, jam, no sievers, Wez
CC:
chromium-reviews, erikwright+watch_chromium.org, sadrul
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

base: Mark MessageLoop::Post*Task API deprecated This is the first step in removing the direct MessageLoop task posting API in favor of task_runner() and the TaskRunner APIs. See the design doc for details[1]. BUG=465354 [1] https://docs.google.com/a/chromium.org/document/d/1qxdh2I61_aB_Uzh1QgNqvdWFBCL_E65G2smoSySw7KU/edit#heading=h.eqrpa9q6bsq5 Committed: https://crrev.com/c8c18e9f1d3ac1033f9ca308143fc3b545475ebe Cr-Commit-Position: refs/heads/master@{#321674}

Patch Set 1 #

Patch Set 2 : Also forward the internal impl to the the task runner. #

Total comments: 7

Patch Set 3 : Bypass refptr, remove DCHECKs. #

Total comments: 2

Patch Set 4 : Added TODO. #

Patch Set 5 : Add TODO to task_runner(). #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -8 lines) Patch
M base/message_loop/message_loop.h View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
M base/message_loop/message_loop.cc View 1 2 1 chunk +4 lines, -8 lines 0 comments Download

Messages

Total messages: 27 (4 generated)
Sami
5 years, 9 months ago (2015-03-16 20:29:14 UTC) #2
sadrul
drive-by! Could the impls of MessageLoop::PostTask etc. could also be changed to just call into ...
5 years, 9 months ago (2015-03-16 20:31:28 UTC) #3
Sami
On 2015/03/16 20:31:28, sadrul wrote: > drive-by! Could the impls of MessageLoop::PostTask etc. could also ...
5 years, 9 months ago (2015-03-16 20:34:46 UTC) #4
no sievers
lgtm
5 years, 9 months ago (2015-03-16 22:43:23 UTC) #5
Sami
Thanks Daniel. John and/or Dana, do you agree?
5 years, 9 months ago (2015-03-18 18:49:18 UTC) #6
danakj
LGTM if this isn't bad for perf. https://codereview.chromium.org/1013813003/diff/20001/base/message_loop/message_loop.cc File base/message_loop/message_loop.cc (right): https://codereview.chromium.org/1013813003/diff/20001/base/message_loop/message_loop.cc#newcode279 base/message_loop/message_loop.cc:279: task_runner()->PostTask(from_here, task); ...
5 years, 9 months ago (2015-03-19 21:43:21 UTC) #7
no sievers
+wez to confirm that it's ok to make the implementation of ML::Post*Task() going through the ...
5 years, 9 months ago (2015-03-19 21:50:35 UTC) #9
Wez
On 2015/03/19 21:50:35, sievers wrote: > +wez to confirm that it's ok to make the ...
5 years, 9 months ago (2015-03-20 04:09:33 UTC) #10
Wez
https://codereview.chromium.org/1013813003/diff/20001/base/message_loop/message_loop.cc File base/message_loop/message_loop.cc (right): https://codereview.chromium.org/1013813003/diff/20001/base/message_loop/message_loop.cc#newcode278 base/message_loop/message_loop.cc:278: DCHECK(!task.is_null()) << from_here.ToString(); These DCHECKs should be in the ...
5 years, 9 months ago (2015-03-20 04:13:01 UTC) #11
Sami
Thanks all. https://codereview.chromium.org/1013813003/diff/20001/base/message_loop/message_loop.cc File base/message_loop/message_loop.cc (right): https://codereview.chromium.org/1013813003/diff/20001/base/message_loop/message_loop.cc#newcode278 base/message_loop/message_loop.cc:278: DCHECK(!task.is_null()) << from_here.ToString(); On 2015/03/20 04:13:01, Wez ...
5 years, 9 months ago (2015-03-20 17:16:56 UTC) #12
danakj
https://codereview.chromium.org/1013813003/diff/20001/base/message_loop/message_loop.h File base/message_loop/message_loop.h (right): https://codereview.chromium.org/1013813003/diff/20001/base/message_loop/message_loop.h#newcode158 base/message_loop/message_loop.h:158: // NOTE: Deprecated; prefer task_runner() and the TaskRunner interfaces. ...
5 years, 9 months ago (2015-03-20 17:19:13 UTC) #13
Sami
> Linking to bugs in TODO is a good practice. Good idea, added a TODO ...
5 years, 9 months ago (2015-03-20 17:36:27 UTC) #14
Wez
On 2015/03/20 17:16:56, Sami wrote: > Thanks all. > > https://codereview.chromium.org/1013813003/diff/20001/base/message_loop/message_loop.cc > File base/message_loop/message_loop.cc (right): ...
5 years, 9 months ago (2015-03-20 18:47:03 UTC) #15
Sami
On 2015/03/20 18:47:03, Wez wrote: > Looking at the definition of task_runner(), that seems to ...
5 years, 9 months ago (2015-03-20 20:07:57 UTC) #16
Wez
On 2015/03/20 20:07:57, Sami wrote: > On 2015/03/20 18:47:03, Wez wrote: > > Looking at ...
5 years, 9 months ago (2015-03-20 20:40:45 UTC) #17
Sami
On 2015/03/20 20:40:45, Wez wrote: > On 2015/03/20 20:07:57, Sami wrote: > > On 2015/03/20 ...
5 years, 9 months ago (2015-03-20 20:44:44 UTC) #18
Wez
On 2015/03/20 20:44:44, Sami wrote: > On 2015/03/20 20:40:45, Wez wrote: > > On 2015/03/20 ...
5 years, 9 months ago (2015-03-20 20:57:20 UTC) #19
danakj
On Fri, Mar 20, 2015 at 1:07 PM, <skyostil@chromium.org> wrote: > On 2015/03/20 18:47:03, Wez ...
5 years, 9 months ago (2015-03-20 21:27:14 UTC) #20
Wez
That form is creating a temporary rather than casting, per-se. Not sure if you can ...
5 years, 9 months ago (2015-03-20 21:34:19 UTC) #21
Sami
On 2015/03/20 21:34:19, Wez wrote: > That form is creating a temporary rather than casting, ...
5 years, 9 months ago (2015-03-20 22:53:06 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1013813003/80001
5 years, 9 months ago (2015-03-20 22:55:15 UTC) #25
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 9 months ago (2015-03-21 00:57:02 UTC) #26
commit-bot: I haz the power
5 years, 9 months ago (2015-03-21 00:58:36 UTC) #27
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/c8c18e9f1d3ac1033f9ca308143fc3b545475ebe
Cr-Commit-Position: refs/heads/master@{#321674}

Powered by Google App Engine
This is Rietveld 408576698