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_win.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_win.cc')
-rw-r--r-- | base/sys_info_win.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/base/sys_info_win.cc b/base/sys_info_win.cc index 8e1a7ba..ebb95c7ba 100644 --- a/base/sys_info_win.cc +++ b/base/sys_info_win.cc @@ -6,6 +6,7 @@ #include <windows.h> +#include "base/file_path.h" #include "base/logging.h" #include "base/scoped_ptr.h" #include "base/string_util.h" @@ -35,9 +36,9 @@ int64 SysInfo::AmountOfPhysicalMemory() { } // static -int64 SysInfo::AmountOfFreeDiskSpace(const std::wstring& path) { +int64 SysInfo::AmountOfFreeDiskSpace(const FilePath& path) { ULARGE_INTEGER available, total, free; - if (!GetDiskFreeSpaceExW(path.c_str(), &available, &total, &free)) { + if (!GetDiskFreeSpaceExW(path.value().c_str(), &available, &total, &free)) { return -1; } int64 rv = static_cast<int64>(available.QuadPart); |