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

Unified Diff: content/browser/storage_partition_impl.cc

Issue 1979733002: Add ability to clear content licenses (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: seperate file Created 4 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: content/browser/storage_partition_impl.cc
diff --git a/content/browser/storage_partition_impl.cc b/content/browser/storage_partition_impl.cc
index 65bf56140be1ff27696d83e7f5f483486b15345b..14f15595f1089ae75a1841ead784e6ca71d13319 100644
--- a/content/browser/storage_partition_impl.cc
+++ b/content/browser/storage_partition_impl.cc
@@ -36,6 +36,10 @@
#include "storage/browser/database/database_tracker.h"
#include "storage/browser/quota/quota_manager.h"
+#if defined(ENABLE_PLUGINS)
+#include "content/browser/plugin_private_storage_helper.h"
+#endif // defined(ENABLE_PLUGINS)
+
namespace content {
namespace {
@@ -316,6 +320,7 @@ struct StoragePartitionImpl::DataDeletionHelper {
storage::QuotaManager* quota_manager,
storage::SpecialStoragePolicy* special_storage_policy,
WebRTCIdentityStore* webrtc_identity_store,
+ storage::FileSystemContext* filesystem_context,
const base::Time begin,
const base::Time end);
@@ -635,7 +640,8 @@ void StoragePartitionImpl::ClearDataImpl(
helper->ClearDataOnUIThread(
storage_origin, origin_matcher, cookie_matcher, GetPath(), rq_context,
dom_storage_context_.get(), quota_manager_.get(),
- special_storage_policy_.get(), webrtc_identity_store_.get(), begin, end);
+ special_storage_policy_.get(), webrtc_identity_store_.get(),
+ filesystem_context_.get(), begin, end);
}
void StoragePartitionImpl::
@@ -775,6 +781,7 @@ void StoragePartitionImpl::DataDeletionHelper::ClearDataOnUIThread(
storage::QuotaManager* quota_manager,
storage::SpecialStoragePolicy* special_storage_policy,
WebRTCIdentityStore* webrtc_identity_store,
+ storage::FileSystemContext* filesystem_context,
const base::Time begin,
const base::Time end) {
DCHECK_NE(remove_mask, 0u);
@@ -855,6 +862,16 @@ void StoragePartitionImpl::DataDeletionHelper::ClearDataOnUIThread(
decrement_callback));
}
+#if defined(ENABLE_PLUGINS)
+ if (remove_mask & REMOVE_DATA_MASK_PLUGIN_PRIVATE_DATA) {
+ IncrementTaskCountOnUI();
+ filesystem_context->default_file_task_runner()->PostTask(
+ FROM_HERE, base::Bind(&ClearPluginPrivateDataOnFileTaskRunner,
+ make_scoped_refptr(filesystem_context),
+ storage_origin, begin, end, decrement_callback));
+ }
+#endif // defined(ENABLE_PLUGINS)
+
DecrementTaskCountOnUI();
}

Powered by Google App Engine
This is Rietveld 408576698