Closed
Bug 1246835
Opened 10 years ago
Closed 10 years ago
Reduce #ifdefs pain in GMPChild.cpp
Categories
(Core :: Audio/Video: GMP, defect, P2)
Core
Audio/Video: GMP
Tracking
()
RESOLVED
FIXED
mozilla47
| Tracking | Status | |
|---|---|---|
| firefox47 | --- | fixed |
People
(Reporter: cpearce, Assigned: cpearce)
References
Details
Attachments
(1 file)
|
5.90 KB,
patch
|
mozbugz
:
review+
|
Details | Diff | Splinter Review |
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.
| Assignee | ||
Comment 1•10 years ago
|
||
Attachment #8717261 -
Flags: review?(gsquelart)
Attachment #8717261 -
Flags: review?(gsquelart) → review+
| Assignee | ||
Comment 2•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/c0b8f05a48d564dd81012d4c5e8239dec796c0f6
Bug 1246835 - Reduce #ifdefs pain in GMPChild.cpp. r=gerald
| Assignee | ||
Comment 4•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/e328bafd9d8ee7f17b68baf783a25a5979ceb78d
Bug 1246835 - Reduce #ifdefs pain in GMPChild.cpp. r=gerald
Comment 5•10 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 10 years ago
status-firefox47:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
You need to log in
before you can comment on or make changes to this bug.
Description
•