Chromium Code Reviews| Index: net/extras/sqlite/sqlite_channel_id_store.cc |
| diff --git a/net/extras/sqlite/sqlite_channel_id_store.cc b/net/extras/sqlite/sqlite_channel_id_store.cc |
| index d7edf9c170dd39710a5a46f45e71b2c6cd6e8fd3..db3c4b330ff6e6263b8aa11c4b8ea90ff07a1cfb 100644 |
| --- a/net/extras/sqlite/sqlite_channel_id_store.cc |
| +++ b/net/extras/sqlite/sqlite_channel_id_store.cc |
| @@ -567,6 +567,9 @@ void SQLiteChannelIDStore::Backend::BackgroundDeleteAllInList( |
| if (!db_.get()) |
| return; |
| + // Force a commit of any pending writes before issuing deletes. |
| + Commit(); |
|
Ryan Sleevi
2015/03/19 02:45:56
It seems wasteful to Commit-and-Delete.
Would you
|
| + |
| sql::Statement del_smt(db_->GetCachedStatement( |
| SQL_FROM_HERE, "DELETE FROM origin_bound_certs WHERE origin=?")); |
| if (!del_smt.is_valid()) { |