Chromium Code Reviews| Index: content/browser/indexed_db/indexed_db_factory_impl.cc |
| diff --git a/content/browser/indexed_db/indexed_db_factory_impl.cc b/content/browser/indexed_db/indexed_db_factory_impl.cc |
| index f25989dcfa1326f4a3ccdd6a467d431ed6aa1bfe..8299cec8d82dccfd1370dd4685bab43aa2e19a27 100644 |
| --- a/content/browser/indexed_db/indexed_db_factory_impl.cc |
| +++ b/content/browser/indexed_db/indexed_db_factory_impl.cc |
| @@ -213,14 +213,15 @@ void IndexedDBFactoryImpl::DeleteDatabase( |
| scoped_refptr<net::URLRequestContextGetter> request_context_getter, |
| scoped_refptr<IndexedDBCallbacks> callbacks, |
| const Origin& origin, |
| - const base::FilePath& data_directory) { |
| + const base::FilePath& data_directory, |
| + bool force_close) { |
| IDB_TRACE("IndexedDBFactoryImpl::DeleteDatabase"); |
| IndexedDBDatabase::Identifier unique_identifier(origin, name); |
| const auto& it = database_map_.find(unique_identifier); |
| if (it != database_map_.end()) { |
| // If there are any connections to the database, directly delete the |
| // database. |
| - it->second->DeleteDatabase(callbacks); |
| + it->second->DeleteDatabase(callbacks, force_close); |
| return; |
| } |
| @@ -282,7 +283,7 @@ void IndexedDBFactoryImpl::DeleteDatabase( |
| database_map_[unique_identifier] = database.get(); |
| origin_dbs_.insert(std::make_pair(origin, database.get())); |
| - database->DeleteDatabase(callbacks); |
| + database->DeleteDatabase(callbacks, false /* force_close */); |
|
jsbell
2017/01/20 23:33:40
Reading this CL it's a little weird to see false p
eostroukhov
2017/01/23 19:22:21
I changed the code to pass the flag on.
|
| RemoveDatabaseFromMaps(unique_identifier); |
| database = NULL; |
| backing_store = NULL; |