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

Unified Diff: android_webview/browser/net/aw_url_request_context_getter.cc

Issue 11293252: Change Interceptors into URLRequestJobFactory::ProtocolHandlers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address erikwright's third round of comments Created 8 years 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/net/aw_url_request_context_getter.cc
diff --git a/android_webview/browser/net/aw_url_request_context_getter.cc b/android_webview/browser/net/aw_url_request_context_getter.cc
index 45cd11e7ba607654c048c989835047810483ea3c..c2016f2cb2f7c93eea5cf3f7f3f8bb9f7eea55fb 100644
--- a/android_webview/browser/net/aw_url_request_context_getter.cc
+++ b/android_webview/browser/net/aw_url_request_context_getter.cc
@@ -103,7 +103,6 @@ void AwURLRequestContextGetter::Init() {
chrome::kDataScheme, new net::DataProtocolHandler());
DCHECK(set_protocol);
job_factory_->AddInterceptor(new AwRequestInterceptor());
- url_request_context_->set_job_factory(job_factory_.get());
// TODO(mnaganov): Fix URLRequestContextBuilder to use proper threads.
net::HttpNetworkSession::Params network_session_params;
@@ -118,8 +117,9 @@ void AwURLRequestContextGetter::Init() {
main_http_factory_.reset(main_cache);
url_request_context_->set_http_transaction_factory(main_cache);
- OnNetworkStackInitialized(url_request_context_.get(),
- job_factory_.get());
+ job_factory_ = OnNetworkStackInitialized(url_request_context_.get(),
+ job_factory_.Pass());
+ url_request_context_->set_job_factory(job_factory_.get());
}
void AwURLRequestContextGetter::PopulateNetworkSessionParams(
« no previous file with comments | « no previous file | android_webview/browser/net/init_native_callback.h » ('j') | android_webview/native/android_protocol_handler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698