| Index: base/file_util_win.cc
|
| diff --git a/base/file_util_win.cc b/base/file_util_win.cc
|
| index 6c7f0938bea7e7bcbc865d8c6f827accd3472e64..964302adce55b0cafab153460614e5bc2a81a1f3 100644
|
| --- a/base/file_util_win.cc
|
| +++ b/base/file_util_win.cc
|
| @@ -28,6 +28,18 @@
|
|
|
| using base::FilePath;
|
|
|
| +namespace base {
|
| +
|
| +FilePath MakeAbsoluteFilePath(const FilePath& input) {
|
| + base::ThreadRestrictions::AssertIOAllowed();
|
| + wchar_t file_path[MAX_PATH];
|
| + if (!_wfullpath(file_path, input.value().c_str(), MAX_PATH))
|
| + return FilePath();
|
| + return FilePath(file_path);
|
| +}
|
| +
|
| +} // namespace base
|
| +
|
| namespace file_util {
|
|
|
| namespace {
|
| @@ -37,15 +49,6 @@ const DWORD kFileShareAll =
|
|
|
| } // namespace
|
|
|
| -bool AbsolutePath(FilePath* path) {
|
| - base::ThreadRestrictions::AssertIOAllowed();
|
| - wchar_t file_path_buf[MAX_PATH];
|
| - if (!_wfullpath(file_path_buf, path->value().c_str(), MAX_PATH))
|
| - return false;
|
| - *path = FilePath(file_path_buf);
|
| - return true;
|
| -}
|
| -
|
| bool Delete(const FilePath& path, bool recursive) {
|
| base::ThreadRestrictions::AssertIOAllowed();
|
|
|
|
|