summaryrefslogtreecommitdiffstats
path: root/base/native_library_mac.mm
diff options
context:
space:
mode:
authorxhwang@chromium.org <xhwang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-25 01:59:09 +0000
committerxhwang@chromium.org <xhwang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-03-25 01:59:09 +0000
commit0f99844cb63471f828fb62a5105d07aaef63ec54 (patch)
tree8208b8f75342a68a7023980ff6245502b9cd4f16 /base/native_library_mac.mm
parent4912961802e33de08bf6e6f9bbfe89bece472b70 (diff)
downloadchromium_src-0f99844cb63471f828fb62a5105d07aaef63ec54.zip
chromium_src-0f99844cb63471f828fb62a5105d07aaef63ec54.tar.gz
chromium_src-0f99844cb63471f828fb62a5105d07aaef63ec54.tar.bz2
Report PPAPI plugin load error code to UMA.
TBR=sky@chrmium.org BUG=353886 Review URL: https://codereview.chromium.org/206713004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@259091 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/native_library_mac.mm')
-rw-r--r--base/native_library_mac.mm7
1 files changed, 6 insertions, 1 deletions
diff --git a/base/native_library_mac.mm b/base/native_library_mac.mm
index 6544fca..6696454 100644
--- a/base/native_library_mac.mm
+++ b/base/native_library_mac.mm
@@ -41,9 +41,14 @@ static NativeLibraryObjCStatus GetObjCStatusForImage(
return section == NULL ? OBJC_NOT_PRESENT : OBJC_PRESENT;
}
+std::string NativeLibraryLoadError::ToString() const {
+ return message;
+}
+
// static
+// TODO(xhwang): Fill |error|. See http://crbug.com/353771
NativeLibrary LoadNativeLibrary(const base::FilePath& library_path,
- std::string* error) {
+ NativeLibraryLoadError* /* error */) {
// dlopen() etc. open the file off disk.
if (library_path.Extension() == "dylib" || !DirectoryExists(library_path)) {
void* dylib = dlopen(library_path.value().c_str(), RTLD_LAZY);