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

Unified Diff: components/leveldb/leveldb_service_impl.cc

Issue 2855953002: leveldb: Add DBTracker for exposing databases to Chrome's memory-infra. (Closed)
Patch Set: 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_service_impl.cc
diff --git a/components/leveldb/leveldb_service_impl.cc b/components/leveldb/leveldb_service_impl.cc
index 2f754112c52baf46d511246fc17b64ccfca41600..940195e231f271690e1b3996716d75864108d37e 100644
--- a/components/leveldb/leveldb_service_impl.cc
+++ b/components/leveldb/leveldb_service_impl.cc
@@ -59,7 +59,7 @@ void LevelDBServiceImpl::OpenWithOptions(
options.env = env_mojo.get();
leveldb::DB* db = nullptr;
- leveldb::Status s = leveldb::DB::Open(options, dbname, &db);
+ leveldb::Status s = leveldb_env::DBRegistry::Open(options, dbname, &db);
if (s.ok()) {
mojo::MakeStrongAssociatedBinding(
@@ -83,7 +83,7 @@ void LevelDBServiceImpl::OpenInMemory(
options.env = env.get();
leveldb::DB* db = nullptr;
- leveldb::Status s = leveldb::DB::Open(options, "", &db);
+ leveldb::Status s = leveldb_env::DBRegistry::Open(options, "", &db);
if (s.ok()) {
mojo::MakeStrongAssociatedBinding(base::MakeUnique<LevelDBDatabaseImpl>(

Powered by Google App Engine
This is Rietveld 408576698