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

Unified Diff: android_webview/browser/aw_content_browser_client.cc

Issue 294023015: Hook up request interceptors in AndroidWebView code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge Created 6 years, 7 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: android_webview/browser/aw_content_browser_client.cc
diff --git a/android_webview/browser/aw_content_browser_client.cc b/android_webview/browser/aw_content_browser_client.cc
index 62aff355d1f423f2da77c444b2dd1632dcad6a32..4d64ea6f9ced936482435ced2141ebff292bfa26 100644
--- a/android_webview/browser/aw_content_browser_client.cc
+++ b/android_webview/browser/aw_content_browser_client.cc
@@ -214,9 +214,8 @@ net::URLRequestContextGetter* AwContentBrowserClient::CreateRequestContext(
content::ProtocolHandlerMap* protocol_handlers,
content::URLRequestInterceptorScopedVector request_interceptors) {
DCHECK(browser_context_.get() == browser_context);
- // TODO(mkosiba,kinuko): request_interceptors should be hooked up in the
- // downstream. (crbug.com/350286)
- return browser_context_->CreateRequestContext(protocol_handlers);
+ return browser_context_->CreateRequestContext(protocol_handlers,
+ request_interceptors.Pass());
}
net::URLRequestContextGetter*
@@ -230,7 +229,8 @@ AwContentBrowserClient::CreateRequestContextForStoragePartition(
// TODO(mkosiba,kinuko): request_interceptors should be hooked up in the
// downstream. (crbug.com/350286)
return browser_context_->CreateRequestContextForStoragePartition(
- partition_path, in_memory, protocol_handlers);
+ partition_path, in_memory, protocol_handlers,
+ request_interceptors.Pass());
}
std::string AwContentBrowserClient::GetCanonicalEncodingNameByAliasName(
« no previous file with comments | « android_webview/browser/aw_browser_context.cc ('k') | android_webview/browser/net/aw_url_request_context_getter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698