Chromium Code Reviews| Index: base/file_util_win.cc |
| diff --git a/base/file_util_win.cc b/base/file_util_win.cc |
| index 332414af170c628d0aab724e7a7856d679acf3fe..1f3d51ca4674db8852b2cca7d3f96d1376404d57 100644 |
| --- a/base/file_util_win.cc |
| +++ b/base/file_util_win.cc |
| @@ -393,15 +393,7 @@ bool CreateTemporaryFileInDir(const FilePath& dir, |
| return false; |
| } |
| - DWORD path_len = GetLongPathName(temp_name, temp_name, MAX_PATH); |
| - if (path_len > MAX_PATH + 1 || path_len == 0) { |
| - DPLOG(WARNING) << "Failed to get long path name for " << temp_name; |
| - return false; |
| - } |
| - |
| - std::wstring temp_file_str; |
| - temp_file_str.assign(temp_name, path_len); |
| - *temp_file = FilePath(temp_file_str); |
| + *temp_file = FilePath(temp_name); |
|
cpu_(ooo_6.6-7.5)
2012/11/09 17:21:47
In principle I agree with you assessment but I wou
|
| return true; |
| } |