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

Unified Diff: net/base/file_stream_context.cc

Issue 15829004: Update net/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: license twerk Created 7 years, 7 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 | net/base/file_stream_context_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | net/base/file_stream_context_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698