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

Unified Diff: components/cronet/android/cronet_url_request_context_adapter.cc

Issue 2966283002: Remove the file thread dependency from FileNetLogObserver. (Closed)
Patch Set: undo const-ref changes 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/net_log/net_export_file_writer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 d62729b6ba37a6782d0cbb4f70a15e66c55e1a25..d934255566b373c44eb094502b2aaea29504c24b 100644
--- a/components/cronet/android/cronet_url_request_context_adapter.cc
+++ b/components/cronet/android/cronet_url_request_context_adapter.cc
@@ -1027,7 +1027,7 @@ void CronetURLRequestContextAdapter::StartNetLogOnNetworkThread(
if (net_log_file_observer_)
return;
net_log_file_observer_ = net::FileNetLogObserver::CreateUnbounded(
- GetFileThread()->task_runner(), file_path, /*constants=*/nullptr);
+ file_path, /*constants=*/nullptr);
CreateNetLogEntriesForActiveObjects({context_.get()},
net_log_file_observer_.get());
net::NetLogCaptureMode capture_mode =
@@ -1052,8 +1052,7 @@ void CronetURLRequestContextAdapter::StartNetLogToBoundedFileOnNetworkThread(
DCHECK(base::PathIsWritable(file_path));
net_log_file_observer_ = net::FileNetLogObserver::CreateBounded(
- GetFileThread()->task_runner(), file_path, size, kNumNetLogEventFiles,
- /*constants=*/nullptr);
+ file_path, size, kNumNetLogEventFiles, /*constants=*/nullptr);
CreateNetLogEntriesForActiveObjects({context_.get()},
net_log_file_observer_.get());
« no previous file with comments | « no previous file | components/net_log/net_export_file_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698