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

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

Issue 1957763002: EDK: Convert Core::GetAndRemoveDispatcher() to GetAndRemoveHandle(). (Closed) Base URL: https://github.com/domokit/mojo.git@work790_edk_handle_table_14.1-x-work789_edk_handle_table_14-x-work788_edk_handle_13.9-x-work787_edk_handle_13.8
Patch Set: Created 4 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 | « mojo/edk/system/core.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/core.cc
diff --git a/mojo/edk/system/core.cc b/mojo/edk/system/core.cc
index a3a2bcfa6215d4e7e4273afa5c103af6505870ff..1f2ba7e97dc796f15e7521c21414a76d257b18df 100644
--- a/mojo/edk/system/core.cc
+++ b/mojo/edk/system/core.cc
@@ -105,17 +105,12 @@ MojoResult Core::GetHandle(MojoHandle handle, Handle* h) {
return handle_table_.GetHandle(handle, h);
}
-MojoResult Core::GetAndRemoveDispatcher(MojoHandle handle,
- RefPtr<Dispatcher>* dispatcher) {
+MojoResult Core::GetAndRemoveHandle(MojoHandle handle, Handle* h) {
if (handle == MOJO_HANDLE_INVALID)
return MOJO_RESULT_INVALID_ARGUMENT;
MutexLocker locker(&handle_table_mutex_);
- Handle h;
- MojoResult result = handle_table_.GetAndRemoveHandle(handle, &h);
- if (result == MOJO_RESULT_OK)
- *dispatcher = std::move(h.dispatcher);
- return result;
+ return handle_table_.GetAndRemoveHandle(handle, h);
}
MojoResult Core::GetDispatcherAndCheckRights(
« no previous file with comments | « mojo/edk/system/core.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698