diff options
author | deanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-18 12:34:24 +0000 |
---|---|---|
committer | deanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-18 12:34:24 +0000 |
commit | 0e91dd2a1cec40c6fa0390c890e10dc75398de34 (patch) | |
tree | f4385248c0abb048ec718cb555b5287847bc4429 /net/disk_cache/backend_impl.cc | |
parent | fadf97f2f16f6b3ad2756cd07657c4f47172da92 (diff) | |
download | chromium_src-0e91dd2a1cec40c6fa0390c890e10dc75398de34.zip chromium_src-0e91dd2a1cec40c6fa0390c890e10dc75398de34.tar.gz chromium_src-0e91dd2a1cec40c6fa0390c890e10dc75398de34.tar.bz2 |
Move GetFreeDiskSpace to SysInfo.
Patch from Pawel Hajdan Jr.
Review URL: http://codereview.chromium.org/3141
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2359 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 d321c83..05d017a 100644 --- a/net/disk_cache/backend_impl.cc +++ b/net/disk_cache/backend_impl.cc @@ -8,6 +8,7 @@ #include "base/histogram.h" #include "base/message_loop.h" #include "base/string_util.h" +#include "base/sys_info.h" #include "base/timer.h" #include "base/worker_pool.h" #include "net/disk_cache/cache_util.h" @@ -760,7 +761,7 @@ void BackendImpl::AdjustMaxCacheSize(int table_len) { return; // The user is not setting the size, let's figure it out. - int64 available = GetFreeDiskSpace(path_); + int64 available = base::SysInfo::AmountOfFreeDiskSpace(path_); if (available < 0) { max_size_ = kDefaultCacheSize; return; |