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

Unified Diff: mojo/edk/test/test_io_thread.cc

Issue 1408133004: EDK: Remove tracked_objects::Location argument in TestIOThread methods (etc.). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 2 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 | « mojo/edk/test/test_io_thread.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/test/test_io_thread.cc
diff --git a/mojo/edk/test/test_io_thread.cc b/mojo/edk/test/test_io_thread.cc
index e7bcac14dc2cee0acbbbf4e1e9a146b72f7ebe4a..b8b4745057a2e484b2202c967b7ae3d8559c2287 100644
--- a/mojo/edk/test/test_io_thread.cc
+++ b/mojo/edk/test/test_io_thread.cc
@@ -6,6 +6,7 @@
#include "base/bind.h"
#include "base/callback.h"
+#include "base/location.h"
#include "base/synchronization/waitable_event.h"
namespace mojo {
@@ -50,15 +51,13 @@ void TestIOThread::Stop() {
io_thread_started_ = false;
}
-void TestIOThread::PostTask(const tracked_objects::Location& from_here,
- const base::Closure& task) {
- task_runner()->PostTask(from_here, task);
+void TestIOThread::PostTask(const base::Closure& task) {
+ task_runner()->PostTask(tracked_objects::Location(), task);
}
-void TestIOThread::PostTaskAndWait(const tracked_objects::Location& from_here,
- const base::Closure& task) {
+void TestIOThread::PostTaskAndWait(const base::Closure& task) {
base::WaitableEvent event(false, false);
- task_runner()->PostTask(from_here,
+ task_runner()->PostTask(tracked_objects::Location(),
base::Bind(&PostTaskAndWaitHelper, &event, task));
event.Wait();
}
« no previous file with comments | « mojo/edk/test/test_io_thread.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698