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

Unified Diff: content/browser/indexed_db/leveldb/leveldb_transaction.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/leveldb/leveldb_transaction.cc
diff --git a/content/browser/indexed_db/leveldb/leveldb_transaction.cc b/content/browser/indexed_db/leveldb/leveldb_transaction.cc
index 2e2221bc8817ed1dd90d29b9686d6bb14b979647..5388d44c6f5ad13fbe09a8d0aa825446fe4a4f26 100644
--- a/content/browser/indexed_db/leveldb/leveldb_transaction.cc
+++ b/content/browser/indexed_db/leveldb/leveldb_transaction.cc
@@ -13,11 +13,6 @@ using base::StringPiece;
namespace content {
-scoped_refptr<LevelDBTransaction> LevelDBTransaction::Create(
- LevelDBDatabase* db) {
- return make_scoped_refptr(new LevelDBTransaction(db));
-}
-
LevelDBTransaction::LevelDBTransaction(LevelDBDatabase* db)
: db_(db), snapshot_(db), comparator_(db->Comparator()), finished_(false) {
tree_.abstractor().comparator_ = comparator_;
@@ -257,9 +252,9 @@ void LevelDBTransaction::TransactionIterator::Next() {
if (direction_ != FORWARD) {
// Ensure the non-current iterator is positioned after Key().
- LevelDBIterator* non_current =
- (current_ == db_iterator_.get()) ? tree_iterator_.get()
- : db_iterator_.get();
+ LevelDBIterator* non_current = (current_ == db_iterator_.get())
+ ? tree_iterator_.get()
+ : db_iterator_.get();
non_current->Seek(Key());
if (non_current->IsValid() &&
@@ -286,9 +281,9 @@ void LevelDBTransaction::TransactionIterator::Prev() {
if (direction_ != REVERSE) {
// Ensure the non-current iterator is positioned before Key().
- LevelDBIterator* non_current =
- (current_ == db_iterator_.get()) ? tree_iterator_.get()
- : db_iterator_.get();
+ LevelDBIterator* non_current = (current_ == db_iterator_.get())
+ ? tree_iterator_.get()
+ : db_iterator_.get();
non_current->Seek(Key());
if (non_current->IsValid()) {

Powered by Google App Engine
This is Rietveld 408576698