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

Unified Diff: webrtc/base/logging.cc

Issue 1921463002: Replace use of GetMacOSStatusErrorString (deprecated) with use of NSOSStatusErrorDomain. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fix guard Created 4 years, 8 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/logging.cc
diff --git a/webrtc/base/logging.cc b/webrtc/base/logging.cc
index 019a31623be1333f48383362ed9fe74c21619fb9..8f7d33cac7deb9f975ba694aaedd47f9e02f9357 100644
--- a/webrtc/base/logging.cc
+++ b/webrtc/base/logging.cc
@@ -171,10 +171,8 @@ LogMessage::LogMessage(const char* file,
#endif // WEBRTC_WIN
#if defined(WEBRTC_MAC) && !defined(WEBRTC_IOS)
case ERRCTX_OSSTATUS: {
- tmp << " " << nonnull(GetMacOSStatusErrorString(err), "Unknown error");
- if (const char* desc = GetMacOSStatusCommentString(err)) {
- tmp << ": " << desc;
- }
+ std::string desc(DescriptionFromOSStatus(err));
+ tmp << " " << (desc.empty() ? "Unknown error" : desc.c_str());
break;
}
#endif // WEBRTC_MAC && !defined(WEBRTC_IOS)
« webrtc/base/base.gyp ('K') | « webrtc/base/logging.h ('k') | webrtc/base/logging_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698