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

Unified Diff: ui/views/examples/content_client/examples_content_browser_client.cc

Issue 187223003: Allow content layer to pass ProtocolInterceptors when we create URLRequestContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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: ui/views/examples/content_client/examples_content_browser_client.cc
diff --git a/ui/views/examples/content_client/examples_content_browser_client.cc b/ui/views/examples/content_client/examples_content_browser_client.cc
index 8a4ebc862e966fb322fa6508ac209a78c3851748..6b3b9105ff404536c87b4e0eb895ea89f8b838de 100644
--- a/ui/views/examples/content_client/examples_content_browser_client.cc
+++ b/ui/views/examples/content_client/examples_content_browser_client.cc
@@ -26,10 +26,12 @@ content::BrowserMainParts* ExamplesContentBrowserClient::CreateBrowserMainParts(
net::URLRequestContextGetter*
ExamplesContentBrowserClient::CreateRequestContext(
content::BrowserContext* content_browser_context,
- content::ProtocolHandlerMap* protocol_handlers) {
+ content::ProtocolHandlerMap* protocol_handlers,
+ content::ProtocolHandlerScopedVector protocol_interceptors) {
content::ShellBrowserContext* shell_context =
examples_browser_main_parts_->browser_context();
- return shell_context->CreateRequestContext(protocol_handlers);
+ return shell_context->CreateRequestContext(protocol_handlers,
+ protocol_interceptors.Pass());
}
} // namespace examples

Powered by Google App Engine
This is Rietveld 408576698