| Index: webrtc/base/unixfilesystem.cc
|
| diff --git a/webrtc/base/unixfilesystem.cc b/webrtc/base/unixfilesystem.cc
|
| index b4743241925e166fd92db83371203259d06aa12b..7c7818a5ca54d6a5e50e40efed57b7e2a4e46be8 100644
|
| --- a/webrtc/base/unixfilesystem.cc
|
| +++ b/webrtc/base/unixfilesystem.cc
|
| @@ -172,6 +172,9 @@ bool UnixFilesystem::DeleteEmptyFolder(const Pathname &folder) {
|
| bool UnixFilesystem::GetTemporaryFolder(Pathname &pathname, bool create,
|
| const std::string *append) {
|
| #if defined(WEBRTC_MAC) && !defined(WEBRTC_IOS)
|
| +// TODO(hjon): Update deprecated APIs (see webrtc:5478 for details).
|
| +#pragma clang diagnostic push
|
| +#pragma clang diagnostic ignored "-Wdeprecated"
|
| FSRef fr;
|
| if (0 != FSFindFolder(kOnAppropriateDisk, kTemporaryFolderType,
|
| kCreateFolder, &fr))
|
| @@ -180,6 +183,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 +363,12 @@ bool UnixFilesystem::GetFileTime(const Pathname& path, FileTimeType which,
|
| bool UnixFilesystem::GetAppPathname(Pathname* path) {
|
| #if defined(WEBRTC_MAC) && !defined(WEBRTC_IOS)
|
| ProcessSerialNumber psn = { 0, kCurrentProcess };
|
| +// TODO(hjon): Update deprecated APIs (see webrtc:5478 for details).
|
| +#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 +402,9 @@ 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) {
|
| +// TODO(hjon): Update deprecated APIs (see webrtc:5478 for details).
|
| +#pragma clang diagnostic push
|
| +#pragma clang diagnostic ignored "-Wdeprecated"
|
| // Use ~/Library/Application Support/<orgname>/<appname>/
|
| FSRef fr;
|
| if (0 != FSFindFolder(kUserDomain, kApplicationSupportFolderType,
|
| @@ -403,6 +414,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;
|
|
|