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

Unified Diff: base/native_library.h

Issue 206713004: Report PPAPI plugin load error code to UMA. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use std::string directly. 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 | « no previous file | base/native_library_mac.mm » ('j') | chrome/browser/load_library_perf_test.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/native_library.h
diff --git a/base/native_library.h b/base/native_library.h
index d7513d0b050e181b4df913e276b39051aef5318f..564234ae11dc0d3daa04f918a8a5d700bb4d751d 100644
--- a/base/native_library.h
+++ b/base/native_library.h
@@ -50,11 +50,18 @@ typedef NativeLibraryStruct* NativeLibrary;
typedef void* NativeLibrary;
#endif // OS_*
+#if defined(OS_WIN)
+typedef DWORD NativeLibraryLoadError;
ddorwin 2014/03/21 20:06:32 While more explicit about what to expect, this for
xhwang 2014/03/21 22:33:28 I fixed the initialization issue with a struct. Mo
+#else
+typedef std::string NativeLibraryLoadError;
+#endif // OS_WIN
+
// Loads a native library from disk. Release it with UnloadNativeLibrary when
// you're done. Returns NULL on failure.
-// If |error| is not NULL, it may be filled in with an error message on error.
+// If |error| is not NULL, it may be filled in on load error if the platform
ddorwin 2014/03/21 20:06:32 I think we can drop the "if the platform..." part.
xhwang 2014/03/21 22:33:28 Done.
+// supports it.
BASE_EXPORT NativeLibrary LoadNativeLibrary(const FilePath& library_path,
- std::string* error);
+ NativeLibraryLoadError* error);
#if defined(OS_WIN)
// Loads a native library from disk. Release it with UnloadNativeLibrary when
« no previous file with comments | « no previous file | base/native_library_mac.mm » ('j') | chrome/browser/load_library_perf_test.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698