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

Unified Diff: content/browser/resource_context_impl.cc

Issue 2062263002: Remove debugging code for fixed bugs. Also clean up unused includes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge again 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
« no previous file with comments | « content/browser/loader/resource_dispatcher_host_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/resource_context_impl.cc
diff --git a/content/browser/resource_context_impl.cc b/content/browser/resource_context_impl.cc
index b86e5c6e52dee691ba1ed1681b778ef8bda4bb40..69858783940e07c9987169ec322b1e043f2e9263 100644
--- a/content/browser/resource_context_impl.cc
+++ b/content/browser/resource_context_impl.cc
@@ -32,21 +32,11 @@ const char kURLDataManagerBackendKeyName[] = "url_data_manager_backend";
ResourceContext::ResourceContext()
: media_device_id_salt_(CreateRandomMediaDeviceIDSalt()) {
- ResourceDispatcherHostImpl* rdhi = ResourceDispatcherHostImpl::Get();
- if (rdhi) {
- BrowserThread::PostTask(
- BrowserThread::IO, FROM_HERE,
- base::Bind(&ResourceDispatcherHostImpl::AddResourceContext,
- base::Unretained(rdhi), this));
- }
}
ResourceContext::~ResourceContext() {
- ResourceDispatcherHostImpl* rdhi = ResourceDispatcherHostImpl::Get();
- if (rdhi) {
- rdhi->CancelRequestsForContext(this);
- rdhi->RemoveResourceContext(this);
- }
+ if (ResourceDispatcherHostImpl::Get())
+ ResourceDispatcherHostImpl::Get()->CancelRequestsForContext(this);
}
std::string ResourceContext::GetMediaDeviceIDSalt() {
« no previous file with comments | « content/browser/loader/resource_dispatcher_host_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698