Closed Bug 1272415 Opened 9 years ago Closed 9 years ago

Don't include task.h everywhere

Categories

(Core :: IPC, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla49
Tracking Status
firefox49 --- fixed

People

(Reporter: khuey, Assigned: khuey)

References

Details

(Whiteboard: btpp-active)

Attachments

(1 file)

Attached patch PatchSplinter Review
Now that almost everywhere is using the XPCOM NewRunnableMethod, we can ditch this.
Attachment #8751818 - Flags: review?(nfroyd)
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+
Yes, because message_loop.h is included in just about everything, and the replacements are almost entirely in .cpp files.
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: nobody → khuey
Status: NEW → ASSIGNED
(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. :(
(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.
Whiteboard: btpp-active
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla49
Depends on: 1273520
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: