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

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

Issue 2977693003: Use TaskRunner passed in to URLRequestContextBuilder only for the cache (Closed)
Patch Set: Actually, don't need to set the thread everywhere Created 3 years, 5 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
« no previous file with comments | « no previous file | components/cronet/android/cronet_url_request_context_adapter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 de485349e3d962bbc30f93ddec6ea5ca7026485c..f8a2ec6a27fe38c32debf339f3bdfc661b73a6a2 100644
--- a/android_webview/browser/net/aw_url_request_context_getter.cc
+++ b/android_webview/browser/net/aw_url_request_context_getter.cc
@@ -254,7 +254,7 @@ void AwURLRequestContextGetter::InitializeURLRequestContext() {
cache_params.max_size = 20 * 1024 * 1024; // 20M
cache_params.path = cache_path_;
builder.EnableHttpCache(cache_params);
- builder.SetFileTaskRunner(
+ builder.SetCacheThreadTaskRunner(
BrowserThread::GetTaskRunnerForThread(BrowserThread::CACHE));
net::HttpNetworkSession::Params network_session_params;
« no previous file with comments | « no previous file | components/cronet/android/cronet_url_request_context_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698