Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1925)

Unified Diff: webrtc/base/applefilesystem.mm

Issue 2299633002: Remove all reference to carbon api (Closed)
Patch Set: Fix chromium build errors Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/base/BUILD.gn ('k') | webrtc/base/base.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/applefilesystem.mm
diff --git a/webrtc/base/iosfilesystem.mm b/webrtc/base/applefilesystem.mm
similarity index 84%
rename from webrtc/base/iosfilesystem.mm
rename to webrtc/base/applefilesystem.mm
index eb4bbecd584ccd13da4bdf3a110fa9a14f965566..9f015edf071502e02f24d1f9f7e8994388a88c55 100644
--- a/webrtc/base/iosfilesystem.mm
+++ b/webrtc/base/applefilesystem.mm
@@ -8,8 +8,8 @@
* be found in the AUTHORS file in the root of the source tree.
*/
-// This file only exists because various iOS system APIs are only
-// available from Objective-C. See unixfilesystem.cc for the only use
+// This file only exists because various iOS and macOS system APIs are only
+// available from Objective-C. See unixfilesystem.cc for the only use
// (enforced by a lack of a header file).
#import <Foundation/NSPathUtilities.h>
@@ -33,7 +33,7 @@ static char* copyString(NSString* s) {
}
// Return a (leaked) copy of a directory name suitable for application data.
-char* IOSDataDirectory() {
+char* AppleDataDirectory() {
NSArray* paths = NSSearchPathForDirectoriesInDomains(
NSApplicationSupportDirectory, NSUserDomainMask, YES);
ASSERT([paths count] == 1);
@@ -41,13 +41,13 @@ char* IOSDataDirectory() {
}
// Return a (leaked) copy of a directory name suitable for use as a $TEMP.
-char* IOSTempDirectory() {
+char* AppleTempDirectory() {
return copyString(NSTemporaryDirectory());
}
// Return the binary's path.
-void IOSAppName(rtc::Pathname* path) {
- NSProcessInfo *pInfo = [NSProcessInfo processInfo];
+void AppleAppName(rtc::Pathname* path) {
+ NSProcessInfo* pInfo = [NSProcessInfo processInfo];
NSString* argv0 = [[pInfo arguments] objectAtIndex:0];
path->SetPathname([argv0 UTF8String]);
}
« no previous file with comments | « webrtc/base/BUILD.gn ('k') | webrtc/base/base.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698