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

Unified Diff: extensions/shell/browser/shell_content_browser_client.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: extensions/shell/browser/shell_content_browser_client.cc
diff --git a/extensions/shell/browser/shell_content_browser_client.cc b/extensions/shell/browser/shell_content_browser_client.cc
index 8a2b45d6ebead769dc7eae786b67c3947624873a..26298c70b915dcad1dd538ae1d09ce03a7ebc1c2 100644
--- a/extensions/shell/browser/shell_content_browser_client.cc
+++ b/extensions/shell/browser/shell_content_browser_client.cc
@@ -117,28 +117,11 @@ bool ShellContentBrowserClient::ShouldUseProcessPerSite(
return true;
}
-net::URLRequestContextGetter* ShellContentBrowserClient::CreateRequestContext(
- content::BrowserContext* content_browser_context,
- content::ProtocolHandlerMap* protocol_handlers,
- content::URLRequestInterceptorScopedVector request_interceptors) {
- // Handle only chrome-extension:// requests. app_shell does not support
- // chrome-extension-resource:// requests (it does not store shared extension
- // data in its installation directory).
- InfoMap* extension_info_map =
- browser_main_parts_->extension_system()->info_map();
- (*protocol_handlers)[kExtensionScheme] =
- linked_ptr<net::URLRequestJobFactory::ProtocolHandler>(
- CreateExtensionProtocolHandler(false /* is_incognito */,
- extension_info_map)
- .release());
- return browser_main_parts_->browser_context()->CreateRequestContext(
- protocol_handlers, std::move(request_interceptors), extension_info_map);
-}
-
bool ShellContentBrowserClient::IsHandledURL(const GURL& url) {
if (!url.is_valid())
return false;
- // Keep in sync with ProtocolHandlers added in CreateRequestContext() and in
+ // Keep in sync with ProtocolHandlers added in
+ // ShellBrowserContext::CreateRequestContext() and in
// content::ShellURLRequestContextGetter::GetURLRequestContext().
static const char* const kProtocolList[] = {
url::kBlobScheme,

Powered by Google App Engine
This is Rietveld 408576698