Make BlobReader create its own file TaskRunner.

https://chromium-review.googlesource.com/c/chromium/src/+/570945
This commit is contained in:
Aleksei Kuzmin 2017-08-23 23:51:09 +03:00 committed by Cheng Zhao
parent 6ba372f9f2
commit edb7bc6572

View file

@ -72,8 +72,7 @@ void AtomBlobReader::StartReading(
} }
auto blob_reader = blob_data_handle->CreateReader( auto blob_reader = blob_data_handle->CreateReader(
file_system_context_.get(), file_system_context_.get());
BrowserThread::GetTaskRunnerForThread(BrowserThread::FILE).get());
BlobReadHelper* blob_read_helper = BlobReadHelper* blob_read_helper =
new BlobReadHelper(std::move(blob_reader), callback); new BlobReadHelper(std::move(blob_reader), callback);
blob_read_helper->Read(); blob_read_helper->Read();