summaryrefslogtreecommitdiffstats
path: root/chromium/base/native_library_posix.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/base/native_library_posix.cc')
-rw-r--r--chromium/base/native_library_posix.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/chromium/base/native_library_posix.cc b/chromium/base/native_library_posix.cc
index dfa20fc01cf..3179a93833c 100644
--- a/chromium/base/native_library_posix.cc
+++ b/chromium/base/native_library_posix.cc
@@ -13,9 +13,13 @@
namespace base {
+std::string NativeLibraryLoadError::ToString() const {
+ return message;
+}
+
// static
NativeLibrary LoadNativeLibrary(const FilePath& library_path,
- std::string* error) {
+ NativeLibraryLoadError* error) {
// dlopen() opens the file off disk.
base::ThreadRestrictions::AssertIOAllowed();
@@ -25,7 +29,7 @@ NativeLibrary LoadNativeLibrary(const FilePath& library_path,
// and http://crbug.com/40794.
void* dl = dlopen(library_path.value().c_str(), RTLD_LAZY);
if (!dl && error)
- *error = dlerror();
+ error->message = dlerror();
return dl;
}