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

Unified Diff: net/base/file_stream_context_posix.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 | « net/base/file_stream_context.cc ('k') | net/base/file_stream_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/file_stream_context_posix.cc
diff --git a/net/base/file_stream_context_posix.cc b/net/base/file_stream_context_posix.cc
index 87fa1066ff37bb00dcaec0c8ea4e7eaabd4e491a..e4102e1e94d15160acf1d3193d0eee87d853d290 100644
--- a/net/base/file_stream_context_posix.cc
+++ b/net/base/file_stream_context_posix.cc
@@ -84,12 +84,12 @@ int FileStream::Context::ReadAsync(IOBuffer* in_buf,
scoped_refptr<IOBuffer> buf = in_buf;
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::ReadFileImpl,
- base::Unretained(this), buf, buf_len),
+ base::Bind(&Context::ReadFileImpl, base::Unretained(this), buf, buf_len),
base::Bind(&Context::ProcessAsyncResult,
- base::Unretained(this), IntToInt64(callback),
+ base::Unretained(this),
+ IntToInt64(callback),
FILE_ERROR_SOURCE_READ));
DCHECK(posted);
@@ -111,12 +111,12 @@ int FileStream::Context::WriteAsync(IOBuffer* in_buf,
scoped_refptr<IOBuffer> buf = in_buf;
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::WriteFileImpl,
- base::Unretained(this), buf, buf_len),
+ base::Bind(&Context::WriteFileImpl, base::Unretained(this), buf, buf_len),
base::Bind(&Context::ProcessAsyncResult,
- base::Unretained(this), IntToInt64(callback),
+ base::Unretained(this),
+ IntToInt64(callback),
FILE_ERROR_SOURCE_WRITE));
DCHECK(posted);
« no previous file with comments | « net/base/file_stream_context.cc ('k') | net/base/file_stream_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698