Closed
Bug 1272415
Opened 9 years ago
Closed 9 years ago
Don't include task.h everywhere
Categories
(Core :: IPC, defect)
Core
IPC
Tracking
()
RESOLVED
FIXED
mozilla49
| Tracking | Status | |
|---|---|---|
| firefox49 | --- | fixed |
People
(Reporter: khuey, Assigned: khuey)
References
Details
(Whiteboard: btpp-active)
Attachments
(1 file)
|
10.05 KB,
patch
|
froydnj
:
review+
|
Details | Diff | Splinter Review |
Now that almost everywhere is using the XPCOM NewRunnableMethod, we can ditch this.
Attachment #8751818 -
Flags: review?(nfroyd)
Comment 1•9 years ago
|
||
Comment on attachment 8751818 [details] [diff] [review]
Patch
Review of attachment 8751818 [details] [diff] [review]:
-----------------------------------------------------------------
I find it ironic that a patch titled "don't include task.h everywhere" is mostly adding #include "base/task.h".
Why do the places where you added the #include require it? Does this actually reduce the number of files that depend on task.h?
Attachment #8751818 -
Flags: review?(nfroyd) → review+
| Assignee | ||
Comment 2•9 years ago
|
||
Yes, because message_loop.h is included in just about everything, and the replacements are almost entirely in .cpp files.
| Assignee | ||
Comment 3•9 years ago
|
||
Oh, and the ones that still need it are generally using NewRunnableFunction, which we didn't yet consolidate with the XPCOM version (mostly because the chromium one takes arguments and the XPCOM one doesn't).
| Assignee | ||
Updated•9 years ago
|
Assignee: nobody → khuey
Status: NEW → ASSIGNED
Comment 4•9 years ago
|
||
(In reply to Kyle Huey [:khuey] (khuey@mozilla.com) from comment #2)
> Yes, because message_loop.h is included in just about everything, and the
> replacements are almost entirely in .cpp files.
The inclusion of message_loop.h everywhere seems suboptimal. :(
| Assignee | ||
Comment 5•9 years ago
|
||
(In reply to Nathan Froyd [:froydnj] from comment #4)
> (In reply to Kyle Huey [:khuey] (khuey@mozilla.com) from comment #2)
> > Yes, because message_loop.h is included in just about everything, and the
> > replacements are almost entirely in .cpp files.
>
> The inclusion of message_loop.h everywhere seems suboptimal. :(
Agreed. We'll get there.
Updated•9 years ago
|
Whiteboard: btpp-active
Comment 7•9 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox49:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla49
You need to log in
before you can comment on or make changes to this bug.
Description
•