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

Unified Diff: base/file_util_posix.cc

Issue 13196006: Move path functions from file_util to FilePath object. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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
Index: base/file_util_posix.cc
diff --git a/base/file_util_posix.cc b/base/file_util_posix.cc
index c7014b637718ce7333c4bebd3b63192fed4a5dea..1cbf623fe4ee85fb284402577bb5f8c3aee20e5f 100644
--- a/base/file_util_posix.cc
+++ b/base/file_util_posix.cc
@@ -150,15 +150,6 @@ static std::string TempFileName() {
#endif
}
-bool AbsolutePath(FilePath* path) {
- base::ThreadRestrictions::AssertIOAllowed(); // For realpath().
- char full_path[PATH_MAX];
- if (realpath(path->value().c_str(), full_path) == NULL)
- return false;
- *path = FilePath(full_path);
- return true;
-}
-
int CountFilesCreatedAfter(const FilePath& path,
const base::Time& comparison_time) {
base::ThreadRestrictions::AssertIOAllowed();

Powered by Google App Engine
This is Rietveld 408576698