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

Unified Diff: content/browser/indexed_db/leveldb/leveldb_database.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: content/browser/indexed_db/leveldb/leveldb_database.cc
diff --git a/content/browser/indexed_db/leveldb/leveldb_database.cc b/content/browser/indexed_db/leveldb/leveldb_database.cc
index f157f5ef29d708506f8e6f00677732f1f23d56d3..0e04befcd4fcf8f1f383c08a01f818fe51f0b4d6 100644
--- a/content/browser/indexed_db/leveldb/leveldb_database.cc
+++ b/content/browser/indexed_db/leveldb/leveldb_database.cc
@@ -141,7 +141,7 @@ static leveldb::Status OpenDB(
// ChromiumEnv assumes UTF8, converts back to FilePath before using.
leveldb::DB* db_ptr = nullptr;
- leveldb::Status s = leveldb::DB::Open(options, path.AsUTF8Unsafe(), &db_ptr);
+ leveldb::Status s = leveldb_env::DBRegistry::Open(options, path.AsUTF8Unsafe(), &db_ptr);
db->reset(db_ptr);
return s;

Powered by Google App Engine
This is Rietveld 408576698