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

Unified Diff: content/browser/storage_partition_impl.cc

Issue 2033353002: Remove PeerConnectionIdentityStore and related messaging/storage code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Delete WebRTCIdentityStore DB on File thread Created 4 years, 6 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 cb7db334b0d0a618f690eff9fafd7fc3b1c54bb2..3659b3c230fa22a94975c1095cbe9eca34424128 100644
--- a/content/browser/storage_partition_impl.cc
+++ b/content/browser/storage_partition_impl.cc
@@ -318,7 +318,6 @@ struct StoragePartitionImpl::DataDeletionHelper {
DOMStorageContextWrapper* dom_storage_context,
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);
@@ -371,7 +370,6 @@ StoragePartitionImpl::StoragePartitionImpl(
IndexedDBContextImpl* indexed_db_context,
CacheStorageContextImpl* cache_storage_context,
ServiceWorkerContextWrapper* service_worker_context,
- WebRTCIdentityStore* webrtc_identity_store,
storage::SpecialStoragePolicy* special_storage_policy,
HostZoomLevelContext* host_zoom_level_context,
PlatformNotificationContextImpl* platform_notification_context,
@@ -385,7 +383,6 @@ StoragePartitionImpl::StoragePartitionImpl(
indexed_db_context_(indexed_db_context),
cache_storage_context_(cache_storage_context),
service_worker_context_(service_worker_context),
- webrtc_identity_store_(webrtc_identity_store),
special_storage_policy_(special_storage_policy),
host_zoom_level_context_(host_zoom_level_context),
platform_notification_context_(platform_notification_context),
@@ -498,9 +495,6 @@ StoragePartitionImpl* StoragePartitionImpl::Create(
scoped_refptr<ChromeAppCacheService> appcache_service =
new ChromeAppCacheService(quota_manager->proxy());
- scoped_refptr<WebRTCIdentityStore> webrtc_identity_store(
- new WebRTCIdentityStore(path, context->GetSpecialStoragePolicy()));
-
scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy(
context->GetSpecialStoragePolicy());
@@ -522,9 +516,8 @@ StoragePartitionImpl* StoragePartitionImpl::Create(
filesystem_context.get(), database_tracker.get(),
dom_storage_context.get(), indexed_db_context.get(),
cache_storage_context.get(), service_worker_context.get(),
- webrtc_identity_store.get(), special_storage_policy.get(),
- host_zoom_level_context.get(), platform_notification_context.get(),
- background_sync_context.get());
+ special_storage_policy.get(), host_zoom_level_context.get(),
+ platform_notification_context.get(), background_sync_context.get());
service_worker_context->set_storage_partition(storage_partition);
@@ -626,8 +619,7 @@ 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(),
- filesystem_context_.get(), begin, end);
+ special_storage_policy_.get(), filesystem_context_.get(), begin, end);
}
void StoragePartitionImpl::
@@ -766,7 +758,6 @@ void StoragePartitionImpl::DataDeletionHelper::ClearDataOnUIThread(
DOMStorageContextWrapper* dom_storage_context,
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) {
@@ -836,18 +827,6 @@ void StoragePartitionImpl::DataDeletionHelper::ClearDataOnUIThread(
path, begin, end, decrement_callback));
}
- if (remove_mask & REMOVE_DATA_MASK_WEBRTC_IDENTITY) {
- IncrementTaskCountOnUI();
- BrowserThread::PostTask(
- BrowserThread::IO,
- FROM_HERE,
- base::Bind(&WebRTCIdentityStore::DeleteBetween,
- webrtc_identity_store,
- begin,
- end,
- decrement_callback));
- }
-
#if defined(ENABLE_PLUGINS)
if (remove_mask & REMOVE_DATA_MASK_PLUGIN_PRIVATE_DATA) {
IncrementTaskCountOnUI();
@@ -905,10 +884,6 @@ void StoragePartitionImpl::Flush() {
GetDOMStorageContext()->Flush();
}
-WebRTCIdentityStore* StoragePartitionImpl::GetWebRTCIdentityStore() {
- return webrtc_identity_store_.get();
-}
-
BrowserContext* StoragePartitionImpl::browser_context() const {
return browser_context_;
}

Powered by Google App Engine
This is Rietveld 408576698