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

Unified Diff: mojo/edk/system/waiter_test_utils.cc

Issue 1412283002: Convert mojo::system::Dispatcher to use our new refcounting stuff (instead of base's). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: no change 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/system/waiter_test_utils.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/waiter_test_utils.cc
diff --git a/mojo/edk/system/waiter_test_utils.cc b/mojo/edk/system/waiter_test_utils.cc
index e26142010d512ad807209aa4ebe67cba2ad304c1..9b54909371d34cbe5615d4987f28f2face2ebd9d 100644
--- a/mojo/edk/system/waiter_test_utils.cc
+++ b/mojo/edk/system/waiter_test_utils.cc
@@ -4,6 +4,8 @@
#include "mojo/edk/system/waiter_test_utils.h"
+#include <utility>
+
namespace mojo {
namespace system {
namespace test {
@@ -23,7 +25,7 @@ void SimpleWaiterThread::Run() {
*result_ = waiter_.Wait(MOJO_DEADLINE_INDEFINITE, context_);
}
-WaiterThread::WaiterThread(scoped_refptr<Dispatcher> dispatcher,
+WaiterThread::WaiterThread(RefPtr<Dispatcher>&& dispatcher,
MojoHandleSignals handle_signals,
MojoDeadline deadline,
uint32_t context,
@@ -31,7 +33,7 @@ WaiterThread::WaiterThread(scoped_refptr<Dispatcher> dispatcher,
MojoResult* result_out,
uint32_t* context_out,
HandleSignalsState* signals_state_out)
- : dispatcher_(dispatcher),
+ : dispatcher_(std::move(dispatcher)),
handle_signals_(handle_signals),
deadline_(deadline),
context_(context),
« no previous file with comments | « mojo/edk/system/waiter_test_utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698