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

Unified Diff: components/cronet/android/cronet_url_request_context_adapter.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
Index: components/cronet/android/cronet_url_request_context_adapter.cc
diff --git a/components/cronet/android/cronet_url_request_context_adapter.cc b/components/cronet/android/cronet_url_request_context_adapter.cc
index d934255566b373c44eb094502b2aaea29504c24b..7fb93c99a4658d7209e32352c8da66a0ef72be0f 100644
--- a/components/cronet/android/cronet_url_request_context_adapter.cc
+++ b/components/cronet/android/cronet_url_request_context_adapter.cc
@@ -659,7 +659,7 @@ void CronetURLRequestContextAdapter::InitializeOnNetworkThread(
json_pref_store_ =
new JsonPrefStore(filepath, GetFileThread()->task_runner(),
std::unique_ptr<PrefFilter>());
- context_builder.SetFileTaskRunner(GetFileThread()->task_runner());
+ context_builder.SetCacheThreadTaskRunner(GetFileThread()->task_runner());
// Register prefs and set up the PrefService.
PrefServiceFactory factory;

Powered by Google App Engine
This is Rietveld 408576698