| Summary: | Rename ProcessLauncherMac.mm to ProcessLauncherCocoa.mm | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Chris Dumez <cdumez> | ||||||
| Component: | WebKit2 | Assignee: | Chris Dumez <cdumez> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | achristensen, bfulgham, darin, ggaren, kkinnunen, webkit-bug-importer | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | WebKit Nightly Build | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=233001 | ||||||||
| Attachments: |
|
||||||||
|
Description
Chris Dumez
2021-11-12 08:26:25 PST
Created attachment 444070 [details]
Patch
Comment on attachment 444070 [details]
Patch
Thank you for fixing this confusing naming. r=me!
Committed r285729 (244188@main): <https://commits.webkit.org/244188@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 444070 [details]. (In reply to Chris Dumez from comment #0) > Rename ProcessLauncherMac.mm to ProcessLauncherDarwin.mm since this > implementation is used by both macOS and iOS. I chose the Darwin naming (as > opposed to the Cocoa one) because the implementation only relies on libXPC > and Mach. But still ".mm"? Seems like that relies on Objective-C, which we normally don’t require on non-Cocoa platforms. (In reply to Darin Adler from comment #5) > (In reply to Chris Dumez from comment #0) > > Rename ProcessLauncherMac.mm to ProcessLauncherDarwin.mm since this > > implementation is used by both macOS and iOS. I chose the Darwin naming (as > > opposed to the Cocoa one) because the implementation only relies on libXPC > > and Mach. > > But still ".mm"? Seems like that relies on Objective-C, which we normally > don’t require on non-Cocoa platforms. Oh, I didn't realize we wanted cpp for Darwin files. I'll check if I can make it a cpp (or use Cocoa.mm naming). (In reply to Chris Dumez from comment #6) > (In reply to Darin Adler from comment #5) > > (In reply to Chris Dumez from comment #0) > > > Rename ProcessLauncherMac.mm to ProcessLauncherDarwin.mm since this > > > implementation is used by both macOS and iOS. I chose the Darwin naming (as > > > opposed to the Cocoa one) because the implementation only relies on libXPC > > > and Mach. > > > > But still ".mm"? Seems like that relies on Objective-C, which we normally > > don’t require on non-Cocoa platforms. > > Oh, I didn't realize we wanted cpp for Darwin files. I'll check if I can > make it a cpp (or use Cocoa.mm naming). Hmm, looks like I may need to use Cocoa.mm because of this line: bool isWebKitDevelopmentBuild = ![[[[NSBundle bundleWithIdentifier:@"com.apple.WebKit"] bundlePath] stringByDeletingLastPathComponent] hasPrefix:systemDirectoryPath()]; Makes sense. Certainly CFBundle and NSBundle are not part of Darwin. Anyway, no need for me to be super-nitpick-y about this. Reopening for rename to Cocoa.mm Reopening for rename to Cocoa.mm Created attachment 444085 [details]
Patch
Comment on attachment 444085 [details]
Patch
r=me
Committed r285737 (244196@main): <https://commits.webkit.org/244196@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 444085 [details]. |