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

Unified Diff: content/browser/indexed_db/indexed_db_backing_store.cc

Issue 19117005: IndexedDB: Coding conventions and cleanup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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/indexed_db/indexed_db_backing_store.cc
diff --git a/content/browser/indexed_db/indexed_db_backing_store.cc b/content/browser/indexed_db/indexed_db_backing_store.cc
index dca247ec80d07f79c005a230a119503ca0026852..6b9b633a88fd67d7758a5d2d318706f3e2beafe6 100644
--- a/content/browser/indexed_db/indexed_db_backing_store.cc
+++ b/content/browser/indexed_db/indexed_db_backing_store.cc
@@ -234,8 +234,7 @@ WARN_UNUSED_RESULT static bool SetUpMetadata(
const std::string schema_version_key = SchemaVersionKey::Encode();
const std::string data_version_key = DataVersionKey::Encode();
- scoped_refptr<LevelDBTransaction> transaction =
- LevelDBTransaction::Create(db);
+ scoped_refptr<LevelDBTransaction> transaction = new LevelDBTransaction(db);
int64 db_schema_version = 0;
int64 db_data_version = 0;
@@ -722,8 +721,7 @@ bool IndexedDBBackingStore::GetIDBDatabaseMetaData(
WARN_UNUSED_RESULT static bool GetNewDatabaseId(LevelDBDatabase* db,
int64* new_id) {
- scoped_refptr<LevelDBTransaction> transaction =
- LevelDBTransaction::Create(db);
+ scoped_refptr<LevelDBTransaction> transaction = new LevelDBTransaction(db);
*new_id = -1;
int64 max_database_id = -1;
@@ -762,7 +760,7 @@ bool IndexedDBBackingStore::CreateIDBDatabaseMetaData(const string16& name,
int_version = IndexedDBDatabaseMetadata::DEFAULT_INT_VERSION;
scoped_refptr<LevelDBTransaction> transaction =
- LevelDBTransaction::Create(db_.get());
+ new LevelDBTransaction(db_.get());
PutInt(
transaction.get(), DatabaseNameKey::Encode(identifier_, name), *row_id);
PutString(
@@ -2582,7 +2580,7 @@ IndexedDBBackingStore::Transaction::~Transaction() {}
void IndexedDBBackingStore::Transaction::Begin() {
IDB_TRACE("IndexedDBBackingStore::Transaction::Begin");
DCHECK(!transaction_.get());
- transaction_ = LevelDBTransaction::Create(backing_store_->db_.get());
+ transaction_ = new LevelDBTransaction(backing_store_->db_.get());
}
bool IndexedDBBackingStore::Transaction::Commit() {

Powered by Google App Engine
This is Rietveld 408576698