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

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

Issue 2784003002: [IndexedDB] Mojo testing harness. (Closed)
Patch Set: Working! Created 3 years, 7 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_transaction.cc
diff --git a/content/browser/indexed_db/indexed_db_transaction.cc b/content/browser/indexed_db/indexed_db_transaction.cc
index 904a284651a5220be85d53d13c6958292ac8756c..61da233a3131e7e27a46e6128d10d03ed3f68302 100644
--- a/content/browser/indexed_db/indexed_db_transaction.cc
+++ b/content/browser/indexed_db/indexed_db_transaction.cc
@@ -462,9 +462,11 @@ void IndexedDBTransaction::ProcessTaskQueue() {
// never requests further activity. Read-only transactions don't
// block other transactions, so don't time those out.
if (mode_ != blink::kWebIDBTransactionModeReadOnly) {
- timeout_timer_.Start(
- FROM_HERE, GetInactivityTimeout(),
- base::Bind(&IndexedDBTransaction::Timeout, ptr_factory_.GetWeakPtr()));
+ // TODO(dmurph): Get this back in before submitting.
+ // timeout_timer_.Start(
+ // FROM_HERE, GetInactivityTimeout(),
+ // base::Bind(&IndexedDBTransaction::Timeout,
+ // ptr_factory_.GetWeakPtr()));
}
processing_event_queue_ = false;
}
@@ -474,6 +476,7 @@ base::TimeDelta IndexedDBTransaction::GetInactivityTimeout() const {
}
void IndexedDBTransaction::Timeout() {
+ LOG(ERROR) << "timout";
Abort(IndexedDBDatabaseError(
blink::kWebIDBDatabaseExceptionTimeoutError,
base::ASCIIToUTF16("Transaction timed out due to inactivity.")));

Powered by Google App Engine
This is Rietveld 408576698