diff options
author | tony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-14 00:41:56 +0000 |
---|---|---|
committer | tony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-14 00:41:56 +0000 |
commit | 13326bbed15f36965826368a0079742e7ba530ce (patch) | |
tree | e2a17b387979295ad867429afb2322861f850ece /base/sys_info_posix.cc | |
parent | 5753f39acbb4e6dfba42634d2fbc203a0a9ccccf (diff) | |
download | chromium_src-13326bbed15f36965826368a0079742e7ba530ce.zip chromium_src-13326bbed15f36965826368a0079742e7ba530ce.tar.gz chromium_src-13326bbed15f36965826368a0079742e7ba530ce.tar.bz2 |
Convert SysInfo::AmountOfFreeDiskSpace from wstring to FilePath.
BUG=24672
Review URL: http://codereview.chromium.org/276012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28927 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/sys_info_posix.cc')
-rw-r--r-- | base/sys_info_posix.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/base/sys_info_posix.cc b/base/sys_info_posix.cc index 74a10ac..41afff2 100644 --- a/base/sys_info_posix.cc +++ b/base/sys_info_posix.cc @@ -86,9 +86,9 @@ int64 SysInfo::AmountOfPhysicalMemory() { } // static -int64 SysInfo::AmountOfFreeDiskSpace(const std::wstring& path) { +int64 SysInfo::AmountOfFreeDiskSpace(const FilePath& path) { struct statvfs stats; - if (statvfs(WideToUTF8(path).c_str(), &stats) != 0) { + if (statvfs(path.value().c_str(), &stats) != 0) { return -1; } return static_cast<int64>(stats.f_bavail) * stats.f_frsize; |