Closed Bug 1709715 Opened 3 years ago Closed 3 years ago

Take advantage of CTAD for GetParticularProcessPriorityManager()

Categories

(Core :: DOM: Content Processes, task, P3)

All
Unspecified
task

Tracking

()

RESOLVED FIXED
90 Branch
Tracking Status
firefox90 --- fixed

People

(Reporter: mccr8, Assigned: mccr8)

References

Details

Attachments

(1 file)

This will let us use template argument inference in the places that call it. I'll wait to land this until bug 1618547 settles out.

We really need to just add type guides so CTAD works with already_AddRefed. Though I'm thinking at some point we should change our style guides to prefer returning RefPtr now that we have modern C++ features like move constructors and ref qualifiers.

Depends on: 1710145

Once bug 1710145 is fixed, this can just be about the part of my patch that drops the explicit template arguments.

Summary: Make GetParticularProcessPriorityManager() return a RefPtr → Take advantage of CTAD for GetParticularProcessPriorityManager()
Attachment #9220469 - Attachment description: Bug 1709715 - Make GetParticularProcessPriorityManager() return a RefPtr. → Bug 1709715 - Take advantage of CTAD for GetParticularProcessPriorityManager().
Pushed by amccreight@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/72ca306baa23
Take advantage of CTAD for GetParticularProcessPriorityManager(). r=kmag
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 90 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: