Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2101)

Unified Diff: base/file_util_win.cc

Issue 11300011: Don't expand path to use long names in CreateTemporaryFileInDir. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with trunk Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698