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

Unified Diff: content/browser/dom_storage/session_storage_database.h

Issue 2953473002: Use leveldb_env::OpenDB() to open leveldb databases. (Closed)
Patch Set: Rebase; add comments to CHECK() Created 3 years, 5 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: content/browser/dom_storage/session_storage_database.h
diff --git a/content/browser/dom_storage/session_storage_database.h b/content/browser/dom_storage/session_storage_database.h
index 81c631337a5fdd0f37190dcb5025ac5919124cdf..2c48aec24bafa64dfefcc8e2954179e37f7ce597 100644
--- a/content/browser/dom_storage/session_storage_database.h
+++ b/content/browser/dom_storage/session_storage_database.h
@@ -102,7 +102,7 @@ class CONTENT_EXPORT SessionStorageDatabase :
// Tries to open the database at file_path_, assigns |db| to point to the
// opened leveldb::DB instance.
- leveldb::Status TryToOpen(leveldb::DB** db);
+ leveldb::Status TryToOpen(std::unique_ptr<leveldb::DB>* db);
// Returns true if the database is already open, false otherwise.
bool IsOpen() const;

Powered by Google App Engine
This is Rietveld 408576698