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

Side by Side Diff: content/browser/storage_partition_impl_map.cc

Issue 2159133002: Shutdown StoragePartition before ProfileIOData is being shut down (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed comments Created 4 years, 5 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 unified diff | Download patch
« no previous file with comments | « content/browser/storage_partition_impl.h ('k') | content/public/browser/browser_context.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/storage_partition_impl_map.h" 5 #include "content/browser/storage_partition_impl_map.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 base::Bind(&CacheStorageContextImpl::SetBlobParametersForCache, 595 base::Bind(&CacheStorageContextImpl::SetBlobParametersForCache,
596 partition->GetCacheStorageContext(), 596 partition->GetCacheStorageContext(),
597 base::RetainedRef(partition->GetURLRequestContext()), 597 base::RetainedRef(partition->GetURLRequestContext()),
598 base::RetainedRef( 598 base::RetainedRef(
599 ChromeBlobStorageContext::GetFor(browser_context_)))); 599 ChromeBlobStorageContext::GetFor(browser_context_))));
600 600
601 BrowserThread::PostTask( 601 BrowserThread::PostTask(
602 BrowserThread::IO, FROM_HERE, 602 BrowserThread::IO, FROM_HERE,
603 base::Bind(&ServiceWorkerContextWrapper::InitializeResourceContext, 603 base::Bind(&ServiceWorkerContextWrapper::InitializeResourceContext,
604 partition->GetServiceWorkerContext(), 604 partition->GetServiceWorkerContext(),
605 browser_context_->GetResourceContext(), 605 browser_context_->GetResourceContext()));
606 base::RetainedRef(partition->GetURLRequestContext())));
607 606
608 // We do not call InitializeURLRequestContext() for media contexts because, 607 // We do not call InitializeURLRequestContext() for media contexts because,
609 // other than the HTTP cache, the media contexts share the same backing 608 // other than the HTTP cache, the media contexts share the same backing
610 // objects as their associated "normal" request context. Thus, the previous 609 // objects as their associated "normal" request context. Thus, the previous
611 // call serves to initialize the media request context for this storage 610 // call serves to initialize the media request context for this storage
612 // partition as well. 611 // partition as well.
613 } 612 }
614 } 613 }
615 614
616 } // namespace content 615 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/storage_partition_impl.h ('k') | content/public/browser/browser_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698