Closed Bug 1246835 Opened 10 years ago Closed 10 years ago

Reduce #ifdefs pain in GMPChild.cpp

Categories

(Core :: Audio/Video: GMP, defect, P2)

defect

Tracking

()

RESOLVED FIXED
mozilla47
Tracking Status
firefox47 --- fixed

People

(Reporter: cpearce, Assigned: cpearce)

References

Details

Attachments

(1 file)

In GMPChild.cpp, GetFileBase() and GetPluginFile() have an aLibDirectory parameter that is only passed on MacOSX. This means all the callsites have to have #ifdefs around them. We need to extract the directory of the plugin file for the sandbox setup, but I most call sites don't need the extra argument. We can make the code more readable by using polymorphism and removing the ifdefs.
Attachment #8717261 - Flags: review?(gsquelart) → review+
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
Blocks: 1249275
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: