Chromium Code Reviews| 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..b74d0eb7ec066ba6f44733be81d52a93b29a54a6 100644 |
| --- a/webkit/dom_storage/dom_storage_context.cc |
| +++ b/webkit/dom_storage/dom_storage_context.cc |
| @@ -95,13 +95,15 @@ void DomStorageContext::DeleteOrigin(const GURL& origin) { |
| local->DeleteOrigin(origin); |
| } |
| -void DomStorageContext::DeleteDataModifiedSince(const base::Time& cutoff) { |
| +void DomStorageContext::DeleteDataModifiedSince(const base::Time& cutoff, |
| + bool include_protected_origins) { |
|
jochen (gone - plz use gerrit)
2012/05/23 11:02:21
nit. all arguments on their own line
Mike West
2012/05/23 11:23:51
Done.
|
| 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_ || |
| + if (include_protected_origins || |
| + !special_storage_policy_ || |
| !special_storage_policy_->IsStorageProtected(infos[i].origin)) { |
|
jochen (gone - plz use gerrit)
2012/05/23 11:02:21
this will also delete data on chrome-extensions://
Mike West
2012/05/23 11:23:51
My understanding of the feature was that it should
jochen (gone - plz use gerrit)
2012/05/23 11:38:36
ok, if that's the desired behavior meanwhile. We u
|
| DeleteOrigin(infos[i].origin); |
| } |