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 681b40686344d6a6ee3433b9210317f84bfa41e6..d33c960c2924d4c0520aea5c6c815a6050ff9c38 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 @@ |
} // namespace |
embedder::ScopedPlatformHandle PlatformHandleDispatcher::PassPlatformHandle() { |
- MutexLocker locker(&mutex()); |
+ base::AutoLock locker(lock()); |
return platform_handle_.Pass(); |
} |
@@ -73,13 +73,13 @@ |
} |
void PlatformHandleDispatcher::CloseImplNoLock() { |
- mutex().AssertHeld(); |
+ lock().AssertAcquired(); |
platform_handle_.reset(); |
} |
scoped_refptr<Dispatcher> |
PlatformHandleDispatcher::CreateEquivalentDispatcherAndCloseImplNoLock() { |
- mutex().AssertHeld(); |
+ lock().AssertAcquired(); |
return Create(platform_handle_.Pass()); |
} |