| 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 a6072cf9d133a62eff71efbb38eab2b91c0c5482..f064c67876f626afe857b7d14cba8acc9143b3f3 100644
|
| --- a/mojo/edk/system/platform_handle_dispatcher.cc
|
| +++ b/mojo/edk/system/platform_handle_dispatcher.cc
|
| @@ -43,7 +43,7 @@ scoped_refptr<PlatformHandleDispatcher> PlatformHandleDispatcher::Deserialize(
|
| embedder::PlatformHandleVector* platform_handles) {
|
| if (size != sizeof(SerializedPlatformHandleDispatcher)) {
|
| LOG(ERROR) << "Invalid serialized platform handle dispatcher (bad size)";
|
| - return scoped_refptr<PlatformHandleDispatcher>();
|
| + return nullptr;
|
| }
|
|
|
| const SerializedPlatformHandleDispatcher* serialization =
|
| @@ -58,7 +58,7 @@ scoped_refptr<PlatformHandleDispatcher> PlatformHandleDispatcher::Deserialize(
|
| platform_handle_index >= platform_handles->size()) {
|
| LOG(ERROR)
|
| << "Invalid serialized platform handle dispatcher (missing handles)";
|
| - return scoped_refptr<PlatformHandleDispatcher>();
|
| + return nullptr;
|
| }
|
|
|
| // We take ownership of the handle, so we have to invalidate the one in
|
|
|