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

Unified Diff: content/browser/storage_partition_impl_map.cc

Issue 1862203005: Remove ContentBrowserClient::CreateRequestContext & CreateRequestContextForStoragePartition. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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_map.cc
diff --git a/content/browser/storage_partition_impl_map.cc b/content/browser/storage_partition_impl_map.cc
index 56bf93d8df1197d2cb5a526ecdaee13455b56707..83360f39a83cd97187856d510c3322e4fd735a04 100644
--- a/content/browser/storage_partition_impl_map.cc
+++ b/content/browser/storage_partition_impl_map.cc
@@ -459,14 +459,13 @@ StoragePartitionImpl* StoragePartitionImplMap::Get(
// These calls must happen after StoragePartitionImpl::Create().
if (partition_domain.empty()) {
partition->SetURLRequestContext(
- GetContentClient()->browser()->CreateRequestContext(
- browser_context_, &protocol_handlers,
- std::move(request_interceptors)));
+ browser_context_->CreateRequestContext(
+ &protocol_handlers, std::move(request_interceptors)));
} else {
partition->SetURLRequestContext(
- GetContentClient()->browser()->CreateRequestContextForStoragePartition(
- browser_context_, partition->GetPath(), in_memory,
- &protocol_handlers, std::move(request_interceptors)));
+ browser_context_->CreateRequestContextForStoragePartition(
+ partition->GetPath(), in_memory, &protocol_handlers,
+ std::move(request_interceptors)));
}
partition->SetMediaURLRequestContext(
partition_domain.empty() ?

Powered by Google App Engine
This is Rietveld 408576698