summaryrefslogtreecommitdiffstats
path: root/base/file_util_posix.cc
diff options
context:
space:
mode:
authorjorlow@chromium.org <jorlow@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-26 00:37:06 +0000
committerjorlow@chromium.org <jorlow@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-26 00:37:06 +0000
commit35b9be0331299803c6fa724cbe8e416ec593c6fc (patch)
treee5928c2df4255e4efe6c08399e661892c6d5c28a /base/file_util_posix.cc
parent182c44faa58c15e474682f2ad349eca5a6a2235f (diff)
downloadchromium_src-35b9be0331299803c6fa724cbe8e416ec593c6fc.zip
chromium_src-35b9be0331299803c6fa724cbe8e416ec593c6fc.tar.gz
chromium_src-35b9be0331299803c6fa724cbe8e416ec593c6fc.tar.bz2
For now, let's clear local storage whenever we clear cookies.
BUG=28788 TEST="Clear private data..." from the menu, check cookies, and tell it ok. Data in "Local Storage" inside the profile's data dir should be deleted and any open websites that were using that data should no longer be able to see it. Review URL: http://codereview.chromium.org/441012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33162 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_util_posix.cc')
-rw-r--r--base/file_util_posix.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/base/file_util_posix.cc b/base/file_util_posix.cc
index a269d3f..dc9d793 100644
--- a/base/file_util_posix.cc
+++ b/base/file_util_posix.cc
@@ -699,4 +699,9 @@ void MemoryMappedFile::CloseHandles() {
file_ = base::kInvalidPlatformFileValue;
}
+bool HasFileBeenModifiedSince(const FileEnumerator::FindInfo& find_info,
+ const base::Time& cutoff_time) {
+ return find_info.stat.st_mtime >= cutoff_time.ToTimeT();
+}
+
} // namespace file_util