diff options
author | maruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-23 19:39:10 +0000 |
---|---|---|
committer | maruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-23 19:39:10 +0000 |
commit | 8d60757991fd8e74e2d6d8a25912d24c47e9a421 (patch) | |
tree | dc406e291ef6aade6c98402b91bc1946c9952b2d /base/file_util.h | |
parent | a5d1e1e2cf6deb70a8476fd1f970c697274cbca7 (diff) | |
download | chromium_src-8d60757991fd8e74e2d6d8a25912d24c47e9a421.zip chromium_src-8d60757991fd8e74e2d6d8a25912d24c47e9a421.tar.gz chromium_src-8d60757991fd8e74e2d6d8a25912d24c47e9a421.tar.bz2 |
Revert "Add a TouchFile function that operates on FilePaths + fixing a bug"
This reverts commit 60322.
TBR=dumi
TEST=none
BUG=none
Review URL: http://codereview.chromium.org/3439019
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60327 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_util.h')
-rw-r--r-- | base/file_util.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/base/file_util.h b/base/file_util.h index 7825d5b..415a192 100644 --- a/base/file_util.h +++ b/base/file_util.h @@ -31,6 +31,7 @@ #include "base/platform_file.h" #include "base/scoped_ptr.h" #include "base/string16.h" +#include "base/time.h" #if defined(OS_POSIX) #include "base/eintr_wrapper.h" @@ -317,14 +318,8 @@ bool NormalizeToNativeFilePath(const FilePath& path, FilePath* nt_path); // Returns information about the given file path. bool GetFileInfo(const FilePath& file_path, base::PlatformFileInfo* info); -// Sets the time of the last access and the time of the last modification. -bool TouchFile(const FilePath& path, - const base::Time& last_accessed, - const base::Time& last_modified); - // Set the time of the last modification. Useful for unit tests. -bool SetLastModifiedTime(const FilePath& path, - const base::Time& last_modified); +bool SetLastModifiedTime(const FilePath& file_path, base::Time last_modified); #if defined(OS_POSIX) // Store inode number of |path| in |inode|. Return true on success. |