Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(334)

Unified Diff: mojo/examples/pepper_container_app/plugin_module.cc

Issue 206713004: Report PPAPI plugin load error code to UMA. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: BASE_EXPORT Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/zygote/zygote_main_linux.cc ('k') | mojo/shell/app_child_process.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/examples/pepper_container_app/plugin_module.cc
diff --git a/mojo/examples/pepper_container_app/plugin_module.cc b/mojo/examples/pepper_container_app/plugin_module.cc
index 9ec26aa4aa4d0b91d51e0fe175be20a7d498fc87..d09d42d36d4e24941e964caf7e11a6ee013593e7 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;
}
« no previous file with comments | « content/zygote/zygote_main_linux.cc ('k') | mojo/shell/app_child_process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698