Index: mojo/edk/system/platform_handle_dispatcher.cc |
diff --git a/mojo/edk/system/platform_handle_dispatcher.cc b/mojo/edk/system/platform_handle_dispatcher.cc |
index 681b40686344d6a6ee3433b9210317f84bfa41e6..f9a9f96244bb3aa1f602e8772b2386966c22f065 100644 |
--- a/mojo/edk/system/platform_handle_dispatcher.cc |
+++ b/mojo/edk/system/platform_handle_dispatcher.cc |
@@ -31,7 +31,7 @@ Dispatcher::Type PlatformHandleDispatcher::GetType() const { |
} |
// static |
-scoped_refptr<PlatformHandleDispatcher> PlatformHandleDispatcher::Deserialize( |
+RefPtr<PlatformHandleDispatcher> PlatformHandleDispatcher::Deserialize( |
Channel* channel, |
const void* source, |
size_t size, |
@@ -77,7 +77,7 @@ void PlatformHandleDispatcher::CloseImplNoLock() { |
platform_handle_.reset(); |
} |
-scoped_refptr<Dispatcher> |
+RefPtr<Dispatcher> |
PlatformHandleDispatcher::CreateEquivalentDispatcherAndCloseImplNoLock() { |
mutex().AssertHeld(); |
return Create(platform_handle_.Pass()); |
@@ -87,7 +87,7 @@ void PlatformHandleDispatcher::StartSerializeImplNoLock( |
Channel* /*channel*/, |
size_t* max_size, |
size_t* max_platform_handles) { |
- DCHECK(HasOneRef()); // Only one ref => no need to take the lock. |
+ AssertHasOneRef(); // Only one ref => no need to take the lock. |
*max_size = sizeof(SerializedPlatformHandleDispatcher); |
*max_platform_handles = 1; |
} |
@@ -97,7 +97,7 @@ bool PlatformHandleDispatcher::EndSerializeAndCloseImplNoLock( |
void* destination, |
size_t* actual_size, |
embedder::PlatformHandleVector* platform_handles) { |
- DCHECK(HasOneRef()); // Only one ref => no need to take the lock. |
+ AssertHasOneRef(); // Only one ref => no need to take the lock. |
SerializedPlatformHandleDispatcher* serialization = |
static_cast<SerializedPlatformHandleDispatcher*>(destination); |