Index: third_party/mojo/src/mojo/edk/system/platform_handle_dispatcher.cc |
diff --git a/third_party/mojo/src/mojo/edk/system/platform_handle_dispatcher.cc b/third_party/mojo/src/mojo/edk/system/platform_handle_dispatcher.cc |
index d33c960c2924d4c0520aea5c6c815a6050ff9c38..681b40686344d6a6ee3433b9210317f84bfa41e6 100644 |
--- a/third_party/mojo/src/mojo/edk/system/platform_handle_dispatcher.cc |
+++ b/third_party/mojo/src/mojo/edk/system/platform_handle_dispatcher.cc |
@@ -22,7 +22,7 @@ struct SerializedPlatformHandleDispatcher { |
} // namespace |
embedder::ScopedPlatformHandle PlatformHandleDispatcher::PassPlatformHandle() { |
- base::AutoLock locker(lock()); |
+ MutexLocker locker(&mutex()); |
return platform_handle_.Pass(); |
} |
@@ -73,13 +73,13 @@ PlatformHandleDispatcher::~PlatformHandleDispatcher() { |
} |
void PlatformHandleDispatcher::CloseImplNoLock() { |
- lock().AssertAcquired(); |
+ mutex().AssertHeld(); |
platform_handle_.reset(); |
} |
scoped_refptr<Dispatcher> |
PlatformHandleDispatcher::CreateEquivalentDispatcherAndCloseImplNoLock() { |
- lock().AssertAcquired(); |
+ mutex().AssertHeld(); |
return Create(platform_handle_.Pass()); |
} |