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

Unified Diff: webkit/browser/fileapi/native_file_util.cc

Issue 100453006: Move Touch to base namespace, remove SetLastModifiedTime. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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: webkit/browser/fileapi/native_file_util.cc
diff --git a/webkit/browser/fileapi/native_file_util.cc b/webkit/browser/fileapi/native_file_util.cc
index d195d1ea480a138d09c43e96ddeae30f68f0553f..549de91610cf3452d2f8fac1b83036f8c78b186a 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;
}

Powered by Google App Engine
This is Rietveld 408576698