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

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

Issue 1949283002: EDK: Replace HandleTable::GetAndRemoveDispatcher() with GetAndRemoveHandle(). (Closed) Base URL: https://github.com/domokit/mojo.git@work789_edk_handle_13.3-x-work788_edk_handle_13.2
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/handle_table.h ('k') | mojo/edk/system/handle_table_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/handle_table.cc
diff --git a/mojo/edk/system/handle_table.cc b/mojo/edk/system/handle_table.cc
index cae7a941e4f6ffed8747d830bce9dead4832a055..bd20db6a7496ec5c1ae141d3de7c198b22eece4e 100644
--- a/mojo/edk/system/handle_table.cc
+++ b/mojo/edk/system/handle_table.cc
@@ -49,17 +49,17 @@ MojoResult HandleTable::GetHandle(MojoHandle handle_value, Handle* handle) {
return MOJO_RESULT_OK;
}
-MojoResult HandleTable::GetAndRemoveDispatcher(MojoHandle handle_value,
- RefPtr<Dispatcher>* dispatcher) {
+MojoResult HandleTable::GetAndRemoveHandle(MojoHandle handle_value,
+ Handle* handle) {
DCHECK_NE(handle_value, MOJO_HANDLE_INVALID);
- DCHECK(dispatcher);
+ DCHECK(handle);
HandleToEntryMap::iterator it = handle_to_entry_map_.find(handle_value);
if (it == handle_to_entry_map_.end())
return MOJO_RESULT_INVALID_ARGUMENT;
if (it->second.busy)
return MOJO_RESULT_BUSY;
- *dispatcher = std::move(it->second.handle.dispatcher);
+ *handle = std::move(it->second.handle);
handle_to_entry_map_.erase(it);
return MOJO_RESULT_OK;
« no previous file with comments | « mojo/edk/system/handle_table.h ('k') | mojo/edk/system/handle_table_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698