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

Unified Diff: base/file_util.cc

Issue 8949: AbsolutePath should probably also work on non-Windows platforms. (Closed)
Patch Set: Created 12 years, 2 months 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.cc
diff --git a/base/file_util.cc b/base/file_util.cc
index 5644c8781c3450c9b93687fea5fb06e2b010539b..ade8db1272fdfae1855f1d44c876168f3bf5dddb 100644
--- a/base/file_util.cc
+++ b/base/file_util.cc
@@ -298,7 +298,7 @@ bool CloseFile(FILE* file) {
// Deprecated functions ----------------------------------------------------
bool AbsolutePath(std::wstring* path_str) {
- FilePath path(*path_str);
+ FilePath path(FilePath::FromWStringHack(*path_str));
if (!AbsolutePath(&path))
return false;
*path_str = path.ToWStringHack();
« 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