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

Unified Diff: base/scoped_native_library.h

Issue 1423583002: Stack sampling profiler: handle unloaded and unloading modules (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: . Created 5 years, 2 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
Index: base/scoped_native_library.h
diff --git a/base/scoped_native_library.h b/base/scoped_native_library.h
index c0e93f37212bc06b1f52321946e6a7a9a348ba66..bfe5566a2c97773ec8aa001b38ad08c2e9654c40 100644
--- a/base/scoped_native_library.h
+++ b/base/scoped_native_library.h
@@ -31,6 +31,8 @@ class BASE_EXPORT ScopedNativeLibrary {
// Returns true if there's a valid library loaded.
bool is_valid() const { return !!library_; }
+ NativeLibrary get() const { return library_; }
+
void* GetFunctionPointer(const char* function_name) const;
// Takes ownership of the given library handle. Any existing handle will

Powered by Google App Engine
This is Rietveld 408576698