commit | eca4fb76f4d8889ca272d15522e688659e33dfe3 | [log] [tgz] |
---|---|---|
author | Sebastien Marchand <sebmarchand@chromium.org> | Tue Jun 25 19:52:13 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Jun 25 19:52:13 2019 |
tree | 9ea076cb0e077df469a8546231655f9c5b3f5149 | |
parent | dfafe0d959752e46a17d83a122422418b6b82a2c [diff] |
Fix a scoped temp dir leak in ImportantSitesUsageCounterTest The SQL DB owned by the QuotaManager gets destroyed asynchronously, so given the current ordering of the parameters: base::ScopedTempDir temp_dir_; scoped_refptr<QuotaManager> quota_manager_; The release of |quota_manager_| will post a task to close the database stored in temp_dir_ but this is racy with the destruction of |temp_dir_|. Bug: 974310 Change-Id: Ib54ea1fe1652028a1bcf6b7f6107a01d3e99f2d5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1660833 Commit-Queue: Daniel Murphy <dmurph@chromium.org> Reviewed-by: Daniel Murphy <dmurph@chromium.org> Reviewed-by: Ben Wells <benwells@chromium.org> Auto-Submit: Sébastien Marchand <sebmarchand@chromium.org> Cr-Commit-Position: refs/heads/master@{#672215}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .