| Index: mojo/system/shared_buffer_dispatcher.cc
|
| diff --git a/mojo/system/shared_buffer_dispatcher.cc b/mojo/system/shared_buffer_dispatcher.cc
|
| index dc7d35cc59b0fb45782a16d9962aebb98829c98c..57f0b6e7482135b49082937882d8085b988ad099 100644
|
| --- a/mojo/system/shared_buffer_dispatcher.cc
|
| +++ b/mojo/system/shared_buffer_dispatcher.cc
|
| @@ -27,17 +27,20 @@ struct SerializedSharedBufferDispatcher {
|
| } // namespace
|
|
|
| // static
|
| +const MojoCreateSharedBufferOptions
|
| + SharedBufferDispatcher::kDefaultCreateOptions = {
|
| + static_cast<uint32_t>(sizeof(MojoCreateSharedBufferOptions)),
|
| + MOJO_CREATE_SHARED_BUFFER_OPTIONS_FLAG_NONE
|
| +};
|
| +
|
| +// static
|
| MojoResult SharedBufferDispatcher::ValidateCreateOptions(
|
| const MojoCreateSharedBufferOptions* in_options,
|
| MojoCreateSharedBufferOptions* out_options) {
|
| const MojoCreateSharedBufferOptionsFlags kKnownFlags =
|
| MOJO_CREATE_SHARED_BUFFER_OPTIONS_FLAG_NONE;
|
| - static const MojoCreateSharedBufferOptions kDefaultOptions = {
|
| - static_cast<uint32_t>(sizeof(MojoCreateSharedBufferOptions)),
|
| - MOJO_CREATE_SHARED_BUFFER_OPTIONS_FLAG_NONE
|
| - };
|
|
|
| - *out_options = kDefaultOptions;
|
| + *out_options = kDefaultCreateOptions;
|
| if (!in_options)
|
| return MOJO_RESULT_OK;
|
|
|
|
|