summaryrefslogtreecommitdiffstats
path: root/base/file_util.h
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-04 22:49:00 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-04 22:49:00 +0000
commitc0d50816026776361ba9d69542b880fef4df0ccf (patch)
tree81b744e959401e62280959556a2c88fcc905d0ae /base/file_util.h
parentd08d27eafe2874b46057ce8f816b4cbad8003fac (diff)
downloadchromium_src-c0d50816026776361ba9d69542b880fef4df0ccf.zip
chromium_src-c0d50816026776361ba9d69542b880fef4df0ccf.tar.gz
chromium_src-c0d50816026776361ba9d69542b880fef4df0ccf.tar.bz2
Move Touch to base namespace, remove SetLastModifiedTime.
This implements callers of SetLastModifiedTime in terms of base::Touch. SetLastModifiedTime was just a shorthand for touch that confusingly set both the last modified and last access times, and was only used by 7 files. It seems better to just have the callers call Touch directly. BUG= R=viettrungluu@chromium.org Review URL: https://codereview.chromium.org/100453006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@238803 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_util.h')
-rw-r--r--base/file_util.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/base/file_util.h b/base/file_util.h
index 5282888..1fea6e8 100644
--- a/base/file_util.h
+++ b/base/file_util.h
@@ -294,21 +294,17 @@ BASE_EXPORT bool IsLink(const FilePath& file_path);
// Returns information about the given file path.
BASE_EXPORT bool GetFileInfo(const FilePath& file_path, PlatformFileInfo* info);
+// Sets the time of the last access and the time of the last modification.
+BASE_EXPORT bool TouchFile(const FilePath& path,
+ const Time& last_accessed,
+ const Time& last_modified);
+
} // namespace base
// -----------------------------------------------------------------------------
namespace file_util {
-// Sets the time of the last access and the time of the last modification.
-BASE_EXPORT bool TouchFile(const base::FilePath& path,
- const base::Time& last_accessed,
- const base::Time& last_modified);
-
-// Set the time of the last modification. Useful for unit tests.
-BASE_EXPORT bool SetLastModifiedTime(const base::FilePath& path,
- const base::Time& last_modified);
-
#if defined(OS_POSIX)
// Store inode number of |path| in |inode|. Return true on success.
BASE_EXPORT bool GetInode(const base::FilePath& path, ino_t* inode);