diff options
author | tbreisacher@chromium.org <tbreisacher@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-28 00:54:48 +0000 |
---|---|---|
committer | tbreisacher@chromium.org <tbreisacher@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-28 00:54:48 +0000 |
commit | 2b47283e511ced49a612362bbce6722e4707c632 (patch) | |
tree | c5c8a647f8ba72014d9771ccf42c3c4452393ca3 /net/disk_cache/backend_impl.cc | |
parent | 61dbf7eeb21c4383641f9adf7bb725533658a87f (diff) | |
download | chromium_src-2b47283e511ced49a612362bbce6722e4707c632.zip chromium_src-2b47283e511ced49a612362bbce6722e4707c632.tar.gz chromium_src-2b47283e511ced49a612362bbce6722e4707c632.tar.bz2 |
Return false if CreateDirectory fails
CID=15982
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/9860046
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129325 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache/backend_impl.cc')
-rw-r--r-- | net/disk_cache/backend_impl.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/disk_cache/backend_impl.cc b/net/disk_cache/backend_impl.cc index 1f08b15..037ffc9 100644 --- a/net/disk_cache/backend_impl.cc +++ b/net/disk_cache/backend_impl.cc @@ -1427,7 +1427,8 @@ bool BackendImpl::CreateBackingStore(disk_cache::File* file) { } bool BackendImpl::InitBackingStore(bool* file_created) { - file_util::CreateDirectory(path_); + if (!file_util::CreateDirectory(path_)) + return false; FilePath index_name = path_.AppendASCII(kIndexName); |