| Index: net/base/file_stream_context.cc
|
| diff --git a/net/base/file_stream_context.cc b/net/base/file_stream_context.cc
|
| index 092302f5e98c6cba526076b4478a84d689796f9c..dc0e6b80885acf38b5f09bcbe4271ebfaf01c59e 100644
|
| --- a/net/base/file_stream_context.cc
|
| +++ b/net/base/file_stream_context.cc
|
| @@ -70,12 +70,11 @@ void FileStream::Context::OpenAsync(const base::FilePath& path,
|
| BeginOpenEvent(path);
|
|
|
| const bool posted = base::PostTaskAndReplyWithResult(
|
| - base::WorkerPool::GetTaskRunner(true /* task_is_slow */),
|
| + base::WorkerPool::GetTaskRunner(true /* task_is_slow */).get(),
|
| FROM_HERE,
|
| - base::Bind(&Context::OpenFileImpl,
|
| - base::Unretained(this), path, open_flags),
|
| - base::Bind(&Context::OnOpenCompleted,
|
| - base::Unretained(this), callback));
|
| + base::Bind(
|
| + &Context::OpenFileImpl, base::Unretained(this), path, open_flags),
|
| + base::Bind(&Context::OnOpenCompleted, base::Unretained(this), callback));
|
| DCHECK(posted);
|
|
|
| async_in_progress_ = true;
|
| @@ -113,12 +112,14 @@ void FileStream::Context::SeekAsync(Whence whence,
|
| DCHECK(!async_in_progress_);
|
|
|
| const bool posted = base::PostTaskAndReplyWithResult(
|
| - base::WorkerPool::GetTaskRunner(true /* task is slow */),
|
| + base::WorkerPool::GetTaskRunner(true /* task is slow */).get(),
|
| FROM_HERE,
|
| - base::Bind(&Context::SeekFileImpl,
|
| - base::Unretained(this), whence, offset),
|
| + base::Bind(
|
| + &Context::SeekFileImpl, base::Unretained(this), whence, offset),
|
| base::Bind(&Context::ProcessAsyncResult,
|
| - base::Unretained(this), callback, FILE_ERROR_SOURCE_SEEK));
|
| + base::Unretained(this),
|
| + callback,
|
| + FILE_ERROR_SOURCE_SEEK));
|
| DCHECK(posted);
|
|
|
| async_in_progress_ = true;
|
| @@ -134,12 +135,12 @@ void FileStream::Context::FlushAsync(const CompletionCallback& callback) {
|
| DCHECK(!async_in_progress_);
|
|
|
| const bool posted = base::PostTaskAndReplyWithResult(
|
| - base::WorkerPool::GetTaskRunner(true /* task is slow */),
|
| + base::WorkerPool::GetTaskRunner(true /* task is slow */).get(),
|
| FROM_HERE,
|
| - base::Bind(&Context::FlushFileImpl,
|
| - base::Unretained(this)),
|
| + base::Bind(&Context::FlushFileImpl, base::Unretained(this)),
|
| base::Bind(&Context::ProcessAsyncResult,
|
| - base::Unretained(this), IntToInt64(callback),
|
| + base::Unretained(this),
|
| + IntToInt64(callback),
|
| FILE_ERROR_SOURCE_FLUSH));
|
| DCHECK(posted);
|
|
|
|
|