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

Unified Diff: webrtc/base/unixfilesystem.cc

Issue 1644843003: Compile rtc_base_objc and rtc_api_objc for Mac (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 11 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
Index: webrtc/base/unixfilesystem.cc
diff --git a/webrtc/base/unixfilesystem.cc b/webrtc/base/unixfilesystem.cc
index b4743241925e166fd92db83371203259d06aa12b..1027d80b03eebf3c80cbd7b11c15d8269772ce71 100644
--- a/webrtc/base/unixfilesystem.cc
+++ b/webrtc/base/unixfilesystem.cc
@@ -172,6 +172,8 @@ bool UnixFilesystem::DeleteEmptyFolder(const Pathname &folder) {
bool UnixFilesystem::GetTemporaryFolder(Pathname &pathname, bool create,
const std::string *append) {
#if defined(WEBRTC_MAC) && !defined(WEBRTC_IOS)
+ #pragma clang diagnostic push
+ #pragma clang diagnostic ignored "-Wdeprecated"
FSRef fr;
if (0 != FSFindFolder(kOnAppropriateDisk, kTemporaryFolderType,
kCreateFolder, &fr))
@@ -180,6 +182,7 @@ bool UnixFilesystem::GetTemporaryFolder(Pathname &pathname, bool create,
if (0 != FSRefMakePath(&fr, buffer, arraysize(buffer)))
return false;
pathname.SetPathname(reinterpret_cast<char*>(buffer), "");
+ #pragma clang diagnostic pop
#elif defined(WEBRTC_ANDROID) || defined(WEBRTC_IOS)
ASSERT(provided_app_temp_folder_ != NULL);
pathname.SetPathname(provided_app_temp_folder_, "");
@@ -359,8 +362,11 @@ bool UnixFilesystem::GetFileTime(const Pathname& path, FileTimeType which,
bool UnixFilesystem::GetAppPathname(Pathname* path) {
#if defined(WEBRTC_MAC) && !defined(WEBRTC_IOS)
ProcessSerialNumber psn = { 0, kCurrentProcess };
+ #pragma clang diagnostic push
+ #pragma clang diagnostic ignored "-Wdeprecated"
CFDictionaryRef procinfo = ProcessInformationCopyDictionary(&psn,
kProcessDictionaryIncludeAllInformationMask);
+ #pragma clang diagnostic pop
if (NULL == procinfo)
return false;
CFStringRef cfpath = (CFStringRef) CFDictionaryGetValue(procinfo,
@@ -394,6 +400,8 @@ bool UnixFilesystem::GetAppDataFolder(Pathname* path, bool per_user) {
// First get the base directory for app data.
#if defined(WEBRTC_MAC) && !defined(WEBRTC_IOS)
if (per_user) {
+ #pragma clang diagnostic push
+ #pragma clang diagnostic ignored "-Wdeprecated"
// Use ~/Library/Application Support/<orgname>/<appname>/
FSRef fr;
if (0 != FSFindFolder(kUserDomain, kApplicationSupportFolderType,
@@ -403,6 +411,7 @@ bool UnixFilesystem::GetAppDataFolder(Pathname* path, bool per_user) {
if (0 != FSRefMakePath(&fr, buffer, arraysize(buffer)))
return false;
path->SetPathname(reinterpret_cast<char*>(buffer), "");
+ #pragma clang diagnostic pop
} else {
// TODO
return false;

Powered by Google App Engine
This is Rietveld 408576698