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

Unified Diff: net/base/file_stream_context_win.cc

Issue 1841863002: Update monet. (Closed) Base URL: https://github.com/domokit/monet.git@master
Patch Set: Created 4 years, 9 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_win.cc
diff --git a/net/base/file_stream_context_win.cc b/net/base/file_stream_context_win.cc
index 1a39384c5ee66d3ab843e977aa5ccae36788ec0a..c7c6fe82b8d19de96e3c9d80a8775035c3113931 100644
--- a/net/base/file_stream_context_win.cc
+++ b/net/base/file_stream_context_win.cc
@@ -9,7 +9,6 @@
#include "base/files/file_path.h"
#include "base/logging.h"
#include "base/message_loop/message_loop.h"
-#include "base/message_loop/message_loop_proxy.h"
#include "base/metrics/histogram.h"
#include "base/task_runner.h"
#include "base/threading/worker_pool.h"
@@ -88,7 +87,7 @@ int FileStream::Context::Read(IOBuffer* buf,
base::Bind(&FileStream::Context::ReadAsync, base::Unretained(this),
file_.GetPlatformFile(), make_scoped_refptr(buf), buf_len,
&io_context_.overlapped,
- base::MessageLoop::current()->message_loop_proxy()));
+ base::MessageLoop::current()->task_runner()));
return ERR_IO_PENDING;
}
@@ -213,7 +212,7 @@ void FileStream::Context::ReadAsync(
scoped_refptr<IOBuffer> buf,
int buf_len,
OVERLAPPED* overlapped,
- scoped_refptr<base::MessageLoopProxy> origin_thread_loop) {
+ scoped_refptr<base::SingleThreadTaskRunner> origin_thread_loop) {
DWORD bytes_read = 0;
BOOL ret = ::ReadFile(file, buf->data(), buf_len, &bytes_read, overlapped);
origin_thread_loop->PostTask(
« 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