diff options
author | xhwang@chromium.org <xhwang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-25 01:59:09 +0000 |
---|---|---|
committer | xhwang@chromium.org <xhwang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-25 01:59:09 +0000 |
commit | 0f99844cb63471f828fb62a5105d07aaef63ec54 (patch) | |
tree | 8208b8f75342a68a7023980ff6245502b9cd4f16 /mojo/examples/pepper_container_app | |
parent | 4912961802e33de08bf6e6f9bbfe89bece472b70 (diff) | |
download | chromium_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 'mojo/examples/pepper_container_app')
-rw-r--r-- | mojo/examples/pepper_container_app/plugin_module.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/mojo/examples/pepper_container_app/plugin_module.cc b/mojo/examples/pepper_container_app/plugin_module.cc index 9ec26aa..d09d42d 100644 --- a/mojo/examples/pepper_container_app/plugin_module.cc +++ b/mojo/examples/pepper_container_app/plugin_module.cc @@ -69,13 +69,12 @@ void PluginModule::Initialize() { base::FilePath plugin_path(plugin_name); - std::string error; - plugin_module_.Reset( - base::LoadNativeLibrary(plugin_path, &error)); + base::NativeLibraryLoadError error; + plugin_module_.Reset(base::LoadNativeLibrary(plugin_path, &error)); if (!plugin_module_.is_valid()) { LOG(WARNING) << "Cannot load " << plugin_path.AsUTF8Unsafe() - << ". Error: " << error; + << ". Error: " << error.ToString(); return; } |