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

Unified Diff: content/browser/notifications/notification_database.cc

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/notifications/notification_database.cc
diff --git a/content/browser/notifications/notification_database.cc b/content/browser/notifications/notification_database.cc
index 677a3270ef1a005c491f5768f0856ed3ef3fbe5a..9b00a53ecfdfa8eb638eadd759a11d79b16584c8 100644
--- a/content/browser/notifications/notification_database.cc
+++ b/content/browser/notifications/notification_database.cc
@@ -132,14 +132,12 @@ NotificationDatabase::Status NotificationDatabase::Open(
options.env = env_.get();
}
- leveldb::DB* db = nullptr;
Status status = LevelDBStatusToStatus(
- leveldb::DB::Open(options, path_.AsUTF8Unsafe(), &db));
+ leveldb_env::OpenDB(options, path_.AsUTF8Unsafe(), &db_));
if (status != STATUS_OK)
return status;
state_ = STATE_INITIALIZED;
- db_.reset(db);
return ReadNextPersistentNotificationId();
}
« no previous file with comments | « content/browser/indexed_db/leveldb/leveldb_database.cc ('k') | content/browser/service_worker/service_worker_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698