diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-09 03:04:04 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-09 03:04:04 +0000 |
commit | 5410cac81435cb0fd3eb935c5f16533aa9b218fa (patch) | |
tree | 62ab12eaeab43e270f396c62e660ccda75384a44 /tools | |
parent | 50650fa2691fb199ad624bb9b704cf9f0ae1d992 (diff) | |
download | chromium_src-5410cac81435cb0fd3eb935c5f16533aa9b218fa.zip chromium_src-5410cac81435cb0fd3eb935c5f16533aa9b218fa.tar.gz chromium_src-5410cac81435cb0fd3eb935c5f16533aa9b218fa.tar.bz2 |
Make on-demand download directory creation safe.
If the SavePackage or SaveFileManager went down at the wrong time (most likely during shutdown), we potentially could have crashed. Avoid this race by using a specialized Task instaed of SaveFileManager, and by making the SavePackage callback task scoped.
BUG=none
TEST=downloads still work, whether or not the downloads dir exists.
Review URL: http://codereview.chromium.org/262019
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28511 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions