summaryrefslogtreecommitdiffstats
path: root/content/browser/indexed_db/indexed_db_transaction.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/browser/indexed_db/indexed_db_transaction.cc')
-rw-r--r--content/browser/indexed_db/indexed_db_transaction.cc13
1 files changed, 5 insertions, 8 deletions
diff --git a/content/browser/indexed_db/indexed_db_transaction.cc b/content/browser/indexed_db/indexed_db_transaction.cc
index ff7ba2b..91a851f 100644
--- a/content/browser/indexed_db/indexed_db_transaction.cc
+++ b/content/browser/indexed_db/indexed_db_transaction.cc
@@ -318,14 +318,11 @@ void IndexedDBTransaction::ProcessTaskQueue() {
return;
// Otherwise, start a timer in case the front-end gets wedged and
- // never requests further activity. Read-only transactions don't
- // block other transactions, so don't time those out.
- if (mode_ != indexed_db::TRANSACTION_READ_ONLY) {
- timeout_timer_.Start(
- FROM_HERE,
- base::TimeDelta::FromSeconds(kInactivityTimeoutPeriodSeconds),
- base::Bind(&IndexedDBTransaction::Timeout, this));
- }
+ // never requests further activity.
+ timeout_timer_.Start(
+ FROM_HERE,
+ base::TimeDelta::FromSeconds(kInactivityTimeoutPeriodSeconds),
+ base::Bind(&IndexedDBTransaction::Timeout, this));
}
void IndexedDBTransaction::Timeout() {