diff options
author | ihf@chromium.org <ihf@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-15 19:18:05 +0000 |
---|---|---|
committer | ihf@chromium.org <ihf@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-15 19:18:05 +0000 |
commit | 678e176b1496470d2fcb4e8443ffd7a1561487e1 (patch) | |
tree | 43f4cf87558498c63f398d535e20eb957e444537 /content/ppapi_plugin | |
parent | 29bee8fa5539eb2a45a38981ac7d5bc1dd06c320 (diff) | |
download | chromium_src-678e176b1496470d2fcb4e8443ffd7a1561487e1.zip chromium_src-678e176b1496470d2fcb4e8443ffd7a1561487e1.tar.gz chromium_src-678e176b1496470d2fcb4e8443ffd7a1561487e1.tar.bz2 |
PPAPI: better output in case of failure to load library.
BUG=none
TEST=checked various failures in loading flash
Review URL: http://codereview.chromium.org/7890061
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101352 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/ppapi_plugin')
-rw-r--r-- | content/ppapi_plugin/ppapi_thread.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/content/ppapi_plugin/ppapi_thread.cc b/content/ppapi_plugin/ppapi_thread.cc index 02b1a43..5058e48 100644 --- a/content/ppapi_plugin/ppapi_thread.cc +++ b/content/ppapi_plugin/ppapi_thread.cc @@ -137,7 +137,8 @@ void PpapiThread::Unregister(uint32 plugin_dispatcher_id) { } void PpapiThread::OnMsgLoadPlugin(const FilePath& path) { - base::ScopedNativeLibrary library(base::LoadNativeLibrary(path, NULL)); + std::string error; + base::ScopedNativeLibrary library(base::LoadNativeLibrary(path, &error)); #if defined(OS_WIN) // Once we lower the token the sandbox is locked down and no new modules @@ -156,7 +157,8 @@ void PpapiThread::OnMsgLoadPlugin(const FilePath& path) { #endif if (!library.is_valid()) { - LOG(ERROR) << "Failed to load pepper module"; + LOG(ERROR) << "Failed to load Pepper module from " + << path.value() << " (error: " << error << ")"; return; } |