diff options
author | mmoss@google.com <mmoss@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-11 16:09:11 +0000 |
---|---|---|
committer | mmoss@google.com <mmoss@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-11 16:09:11 +0000 |
commit | 806b9c6f00c6d21259d049d21ebea52de9b47663 (patch) | |
tree | 4f5130957bf055d7371a5d6621063e6616cc340d /net/disk_cache | |
parent | e6f84f1438b160aab349b417bbd9eea34bd3568e (diff) | |
download | chromium_src-806b9c6f00c6d21259d049d21ebea52de9b47663.zip chromium_src-806b9c6f00c6d21259d049d21ebea52de9b47663.tar.gz chromium_src-806b9c6f00c6d21259d049d21ebea52de9b47663.tar.bz2 |
CreateDirectory() should check if an existing path is actually a directory before skipping it. Also update a couple instances and comments to reflect current behaviour (see also http://codereview.chromium.org/1681).
Review URL: http://codereview.chromium.org/1709
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2060 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache')
-rw-r--r-- | net/disk_cache/backend_impl.cc | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/disk_cache/backend_impl.cc b/net/disk_cache/backend_impl.cc index f0733a7..d321c83 100644 --- a/net/disk_cache/backend_impl.cc +++ b/net/disk_cache/backend_impl.cc @@ -730,7 +730,6 @@ bool BackendImpl::CreateBackingStore(disk_cache::File* file) { } bool BackendImpl::InitBackingStore(bool* file_created) { - // This call fails if the folder exists. file_util::CreateDirectory(path_); std::wstring index_name(path_); |