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

Unified Diff: components/leveldb/leveldb_mojo_proxy.h

Issue 2722293002: Fix lifetime of leveldb::MojoEnv instances. (Closed)
Patch Set: annotate leaks Created 3 years, 8 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: components/leveldb/leveldb_mojo_proxy.h
diff --git a/components/leveldb/leveldb_mojo_proxy.h b/components/leveldb/leveldb_mojo_proxy.h
index 2eef1a41d1db0bd2f5a04886e1195cde7b97ef7f..748f194066bbd7d33695a74dd134b6dab9362031 100644
--- a/components/leveldb/leveldb_mojo_proxy.h
+++ b/components/leveldb/leveldb_mojo_proxy.h
@@ -37,6 +37,10 @@ class LevelDBMojoProxy : public base::RefCountedThreadSafe<LevelDBMojoProxy> {
explicit LevelDBMojoProxy(
scoped_refptr<base::SingleThreadTaskRunner> task_runner);
+ base::SingleThreadTaskRunner* task_runner() const {
+ return task_runner_.get();
+ }
+
// A private struct to hide the underlying file that holds the lock from our
// callers, forcing them to go through our LockFile()/UnlockFile() interface
// so that they don't try to use the underlying pointer from an unsafe thread.

Powered by Google App Engine
This is Rietveld 408576698