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

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

Issue 110983004: IndexedDB: More database<->transaction relationship simplification (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years 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_transaction.cc
diff --git a/content/browser/indexed_db/indexed_db_transaction.cc b/content/browser/indexed_db/indexed_db_transaction.cc
index b46bc565124438babcfe53d84ff469a5575c7c32..82e640f3665dd74bbac72f6c1b7746e8e29938a0 100644
--- a/content/browser/indexed_db/indexed_db_transaction.cc
+++ b/content/browser/indexed_db/indexed_db_transaction.cc
@@ -154,7 +154,7 @@ void IndexedDBTransaction::Abort(const IndexedDBDatabaseError& error) {
// Run the abort tasks, if any.
while (!abort_task_stack_.empty())
- abort_task_stack_.pop().Run(0);
+ abort_task_stack_.pop().Run(NULL);
preemptive_task_queue_.clear();
task_queue_.clear();
@@ -202,7 +202,6 @@ void IndexedDBTransaction::Start() {
// TransactionCoordinator has started this transaction.
DCHECK_EQ(CREATED, state_);
state_ = STARTED;
- database_->TransactionStarted(this);
diagnostics_.start_time = base::Time::Now();
if (!used_)
@@ -258,7 +257,7 @@ void IndexedDBTransaction::Commit() {
database_->TransactionFinished(this, true);
} else {
while (!abort_task_stack_.empty())
- abort_task_stack_.pop().Run(0);
+ abort_task_stack_.pop().Run(NULL);
callbacks_->OnAbort(
id_,
« no previous file with comments | « content/browser/indexed_db/indexed_db_database.cc ('k') | content/browser/indexed_db/indexed_db_transaction_coordinator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698