diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-04 22:49:00 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-04 22:49:00 +0000 |
commit | c0d50816026776361ba9d69542b880fef4df0ccf (patch) | |
tree | 81b744e959401e62280959556a2c88fcc905d0ae /webkit/browser/fileapi | |
parent | d08d27eafe2874b46057ce8f816b4cbad8003fac (diff) | |
download | chromium_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 'webkit/browser/fileapi')
-rw-r--r-- | webkit/browser/fileapi/native_file_util.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/webkit/browser/fileapi/native_file_util.cc b/webkit/browser/fileapi/native_file_util.cc index d195d1e..549de91 100644 --- a/webkit/browser/fileapi/native_file_util.cc +++ b/webkit/browser/fileapi/native_file_util.cc @@ -173,8 +173,7 @@ PlatformFileError NativeFileUtil::Touch( const base::FilePath& path, const base::Time& last_access_time, const base::Time& last_modified_time) { - if (!file_util::TouchFile( - path, last_access_time, last_modified_time)) + if (!base::TouchFile(path, last_access_time, last_modified_time)) return base::PLATFORM_FILE_ERROR_FAILED; return base::PLATFORM_FILE_OK; } @@ -244,7 +243,7 @@ PlatformFileError NativeFileUtil::CopyOrMoveFile( // Preserve the last modified time. Do not return error here even if // the setting is failed, because the copy itself is successfully done. if (option == FileSystemOperation::OPTION_PRESERVE_LAST_MODIFIED) - file_util::SetLastModifiedTime(dest_path, last_modified); + base::TouchFile(dest_path, last_modified, last_modified); return base::PLATFORM_FILE_OK; } |