linux: don't always print dlopen errors from LoadNativeLibrary
Instead, return them to the caller and let the caller decide whether
the error is worth notifying the user about.
BUG=79068
Review URL: http://codereview.chromium.org/6864020
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82008 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/base/memory/scoped_native_library.cc b/base/memory/scoped_native_library.cc
index c9aef45..c1e6afc 100644
--- a/base/memory/scoped_native_library.cc
+++ b/base/memory/scoped_native_library.cc
@@ -14,7 +14,7 @@
}
ScopedNativeLibrary::ScopedNativeLibrary(const FilePath& library_path) {
- library_ = base::LoadNativeLibrary(library_path);
+ library_ = base::LoadNativeLibrary(library_path, NULL);
}
ScopedNativeLibrary::~ScopedNativeLibrary() {