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

Unified Diff: mojo/system/core.cc

Issue 425523002: Mojo: Convert MemoryTest.Valid to the new user pointer handling (see r285350). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 years, 5 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/system/core.h ('k') | mojo/system/entrypoints.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/system/core.cc
diff --git a/mojo/system/core.cc b/mojo/system/core.cc
index 9b91632b946f3e01768c5d793568b4e1df5fbe00..0f006eb189393ca4f765f54d207d7327bf71ee3f 100644
--- a/mojo/system/core.cc
+++ b/mojo/system/core.cc
@@ -500,9 +500,9 @@ MojoResult Core::MapBuffer(MojoHandle buffer_handle,
return MOJO_RESULT_OK;
}
-MojoResult Core::UnmapBuffer(UserPointerValue<void> buffer) {
+MojoResult Core::UnmapBuffer(UserPointer<void> buffer) {
base::AutoLock locker(mapping_table_lock_);
- return mapping_table_.RemoveMapping(buffer.GetValue());
+ return mapping_table_.RemoveMapping(buffer.GetPointerValue());
}
// Note: We allow |handles| to repeat the same handle multiple times, since
« no previous file with comments | « mojo/system/core.h ('k') | mojo/system/entrypoints.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698