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

Unified Diff: base/native_library_mac.mm

Issue 2268002: Implemented mid-level Negotiate protocol for Posix. (Closed)
Patch Set: Merged with trunk. Created 10 years, 7 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 | « base/native_library_linux.cc ('k') | base/native_library_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/native_library_mac.mm
diff --git a/base/native_library_mac.mm b/base/native_library_mac.mm
index 8aaeeb12ff0dde6fabfce20aca6f32a501d0e1ad..f461cd3290c6488dc360420a3be29c899c71a0bc 100644
--- a/base/native_library_mac.mm
+++ b/base/native_library_mac.mm
@@ -73,4 +73,15 @@ string16 GetNativeLibraryName(const string16& name) {
return name + ASCIIToUTF16(".dylib");
}
+string16 GetLibraryErrorMessage() {
+ const char* last_err_message = dlerror();
+ string16 err_message;
+
+ if (last_err_message) {
+ err_message = ASCIIToUTF16(last_err_message);
+ }
+
+ return err_message;
+}
+
} // namespace base
« no previous file with comments | « base/native_library_linux.cc ('k') | base/native_library_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698