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

Unified Diff: trunk/src/content/browser/indexed_db/indexed_db_database.cc

Issue 134503003: Revert 244240 "IndexedDBFactory now ForceCloses databases." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 11 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: trunk/src/content/browser/indexed_db/indexed_db_database.cc
===================================================================
--- trunk/src/content/browser/indexed_db/indexed_db_database.cc (revision 244272)
+++ trunk/src/content/browser/indexed_db/indexed_db_database.cc (working copy)
@@ -1589,17 +1589,6 @@
factory_->DatabaseDeleted(identifier_);
}
-void IndexedDBDatabase::ForceClose() {
- // IndexedDBConnection::ForceClose() may delete this database, so hold ref.
- scoped_refptr<IndexedDBDatabase> protect(this);
- ConnectionSet::const_iterator it = connections_.begin();
- while (it != connections_.end()) {
- IndexedDBConnection* connection = *it++;
- connection->ForceClose();
- }
- DCHECK(connections_.empty());
-}
-
void IndexedDBDatabase::Close(IndexedDBConnection* connection, bool forced) {
DCHECK(connections_.count(connection));
DCHECK(connection->IsConnected());
« no previous file with comments | « trunk/src/content/browser/indexed_db/indexed_db_database.h ('k') | trunk/src/content/browser/indexed_db/indexed_db_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698