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

Unified Diff: chrome/browser/chromeos/file_system_provider/fileapi/buffering_file_stream_reader_unittest.cc

Issue 1119803007: [chrome/browser/chromeos] Replace MessageLoopProxy usage with ThreadTaskRunnerHandle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Review Comments & removed fake_provided_file_system.cc due to cancelable_task_tracker dependeā€¦ Created 5 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
Index: chrome/browser/chromeos/file_system_provider/fileapi/buffering_file_stream_reader_unittest.cc
diff --git a/chrome/browser/chromeos/file_system_provider/fileapi/buffering_file_stream_reader_unittest.cc b/chrome/browser/chromeos/file_system_provider/fileapi/buffering_file_stream_reader_unittest.cc
index 51b6d12c26857ee069fcb72a12514234004a1455..bcf5ee65f345d1dc54c268bbc64009cd4bd9d860 100644
--- a/chrome/browser/chromeos/file_system_provider/fileapi/buffering_file_stream_reader_unittest.cc
+++ b/chrome/browser/chromeos/file_system_provider/fileapi/buffering_file_stream_reader_unittest.cc
@@ -7,8 +7,8 @@
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
-#include "base/message_loop/message_loop_proxy.h"
#include "base/run_loop.h"
+#include "base/thread_task_runner_handle.h"
#include "chrome/browser/chromeos/file_system_provider/fileapi/buffering_file_stream_reader.h"
#include "chrome/browser/chromeos/fileapi/file_system_backend.h"
#include "content/public/test/test_browser_thread_bundle.h"
@@ -50,7 +50,7 @@ class FakeFileStreamReader : public storage::FileStreamReader {
log_->push_back(buf_len);
if (return_error_ != net::OK) {
- base::MessageLoopProxy::current()->PostTask(
+ base::ThreadTaskRunnerHandle::Get()->PostTask(
FROM_HERE, base::Bind(callback, return_error_));
return net::ERR_IO_PENDING;
}
@@ -58,14 +58,14 @@ class FakeFileStreamReader : public storage::FileStreamReader {
const std::string fake_data('X', buf_len);
memcpy(buf->data(), fake_data.c_str(), buf_len);
- base::MessageLoopProxy::current()->PostTask(FROM_HERE,
- base::Bind(callback, buf_len));
+ base::ThreadTaskRunnerHandle::Get()->PostTask(
+ FROM_HERE, base::Bind(callback, buf_len));
return net::ERR_IO_PENDING;
}
int64 GetLength(const net::Int64CompletionCallback& callback) override {
DCHECK_EQ(net::OK, return_error_);
- base::MessageLoopProxy::current()->PostTask(
+ base::ThreadTaskRunnerHandle::Get()->PostTask(
FROM_HERE, base::Bind(callback, kFileSize));
return net::ERR_IO_PENDING;
}

Powered by Google App Engine
This is Rietveld 408576698