| 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..32e1132a75f4629a9f016b106643ed8718f50790 100644
|
| --- a/webkit/dom_storage/dom_storage_context.cc
|
| +++ b/webkit/dom_storage/dom_storage_context.cc
|
| @@ -95,13 +95,16 @@ 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) {
|
| 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)) {
|
| DeleteOrigin(infos[i].origin);
|
| }
|
|
|