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

Unified Diff: webkit/dom_storage/dom_storage_context.cc

Issue 10413072: Teaching BrowsingDataRemover how to delete application data. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: How's this direction? Created 8 years, 7 months 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/dom_storage/dom_storage_context.cc
diff --git a/webkit/dom_storage/dom_storage_context.cc b/webkit/dom_storage/dom_storage_context.cc
index e31019067cea7b9922f5e894dd30e741c1d0b5c9..287ae996e46cf5b783e91dc6cb2a1d54552a063c 100644
--- a/webkit/dom_storage/dom_storage_context.cc
+++ b/webkit/dom_storage/dom_storage_context.cc
@@ -95,20 +95,6 @@ void DomStorageContext::DeleteOrigin(const GURL& origin) {
local->DeleteOrigin(origin);
}
-void DomStorageContext::DeleteDataModifiedSince(const base::Time& cutoff) {
- std::vector<UsageInfo> infos;
- const bool kIncludeFileInfo = true;
- GetUsageInfo(&infos, kIncludeFileInfo);
- for (size_t i = 0; i < infos.size(); ++i) {
- if (infos[i].last_modified > cutoff) {
- if (!special_storage_policy_ ||
- !special_storage_policy_->IsStorageProtected(infos[i].origin)) {
- DeleteOrigin(infos[i].origin);
- }
- }
- }
-}
-
void DomStorageContext::PurgeMemory() {
// We can only purge memory from the local storage namespace
// which is backed by disk.

Powered by Google App Engine
This is Rietveld 408576698