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

Unified Diff: components/sync/model_impl/model_type_store_backend.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/sync/model_impl/model_type_store_backend.cc
diff --git a/components/sync/model_impl/model_type_store_backend.cc b/components/sync/model_impl/model_type_store_backend.cc
index a277b82f8cc0918bceae1263691540fafa80bded..489b9c2ccded02abc63d4348e8937b1e72876189 100644
--- a/components/sync/model_impl/model_type_store_backend.cc
+++ b/components/sync/model_impl/model_type_store_backend.cc
@@ -187,7 +187,7 @@ leveldb::Status ModelTypeStoreBackend::OpenDatabase(const std::string& path,
if (env)
options.env = env;
- leveldb::Status status = leveldb::DB::Open(options, path, &db_raw);
+ leveldb::Status status = leveldb_env::DBRegistry::Open(options, path, &db_raw);
DCHECK(status.ok() != (db_raw == nullptr));
if (status.ok())
db_.reset(db_raw);

Powered by Google App Engine
This is Rietveld 408576698