summaryrefslogtreecommitdiffstats
path: root/net/disk_cache
diff options
context:
space:
mode:
authormmoss@google.com <mmoss@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-11 16:09:11 +0000
committermmoss@google.com <mmoss@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-11 16:09:11 +0000
commit806b9c6f00c6d21259d049d21ebea52de9b47663 (patch)
tree4f5130957bf055d7371a5d6621063e6616cc340d /net/disk_cache
parente6f84f1438b160aab349b417bbd9eea34bd3568e (diff)
downloadchromium_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.cc1
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_);