Simple Cache: move cache size estimation to cache thread
commit231274fcb382c876c9f3654dacdbd00d3c9b1df7
authorpasko@google.com <pasko@google.com@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 24 Apr 2013 15:56:28 +0000 (24 15:56 +0000)
committerpasko@google.com <pasko@google.com@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 24 Apr 2013 15:56:28 +0000 (24 15:56 +0000)
tree28cab183ccc4fe78a7faa221de56df1816364d41
parent1b39a6a65701bc52f6f27d8190c80a9a5dfe67f6
Simple Cache: move cache size estimation to cache thread

There was a bug with accessing the filesystem with
SysInfo::AmountOfFreeDiskSpace() on IO thread. This was because I misread the
assertion in the function. Fix it to estimate the max size together with
providing the directory for the cache.

BUG=none

Review URL: https://chromiumcodereview.appspot.com/13843018

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196158 0039d316-1c4b-4281-b951-d872f2087c98
net/disk_cache/simple/simple_backend_impl.cc
net/disk_cache/simple/simple_backend_impl.h
net/disk_cache/simple/simple_index.cc
net/disk_cache/simple/simple_index.h