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

Unified Diff: webrtc/base/logging.h

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.h
diff --git a/webrtc/base/logging.h b/webrtc/base/logging.h
index 8c7b3f70e5284a5c0a7b76f69ab5e05ac089a7a8..886b5d88f70c9c899f26d07188007627911ffb7e 100644
--- a/webrtc/base/logging.h
+++ b/webrtc/base/logging.h
@@ -51,6 +51,10 @@
#include <string>
#include <utility>
+#if defined(WEBRTC_MAC) && !defined(WEBRTC_IOS)
+#include <CoreServices/CoreServices.h>
+#endif
+
#include "webrtc/base/basictypes.h"
#include "webrtc/base/constructormagic.h"
#include "webrtc/base/thread_annotations.h"
@@ -80,6 +84,11 @@ struct ConstantLabel { int value; const char * label; };
const char* FindLabel(int value, const ConstantLabel entries[]);
std::string ErrorName(int err, const ConstantLabel* err_table);
+#if defined(WEBRTC_MAC) && !defined(WEBRTC_IOS)
+// Returns a UTF8 description from an OS X Status error.
+std::string DescriptionFromOSStatus(OSStatus err);
+#endif
+
//////////////////////////////////////////////////////////////////////
// Note that the non-standard LoggingSeverity aliases exist because they are
« webrtc/base/base.gyp ('K') | « webrtc/base/base.gyp ('k') | webrtc/base/logging.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698