| Index: components/filesystem/directory_impl.cc
|
| diff --git a/components/filesystem/directory_impl.cc b/components/filesystem/directory_impl.cc
|
| index 8df2b122d8941a950c2b3f5372a9b46fb4d3fefe..835a0f22029fcdf7bf8ae0a6ec4903ee4901372a 100644
|
| --- a/components/filesystem/directory_impl.cc
|
| +++ b/components/filesystem/directory_impl.cc
|
| @@ -16,7 +16,7 @@
|
| #include "components/filesystem/lock_table.h"
|
| #include "components/filesystem/util.h"
|
| #include "mojo/common/common_type_converters.h"
|
| -#include "mojo/platform_handle/platform_handle_functions.h"
|
| +#include "mojo/public/cpp/system/platform_handle.h"
|
|
|
| namespace filesystem {
|
|
|
| @@ -352,16 +352,8 @@ mojo::ScopedHandle DirectoryImpl::OpenFileHandleImpl(
|
| return mojo::ScopedHandle();
|
| }
|
|
|
| - MojoHandle mojo_handle;
|
| - MojoResult create_result = MojoCreatePlatformHandleWrapper(
|
| - base_file.TakePlatformFile(), &mojo_handle);
|
| - if (create_result != MOJO_RESULT_OK) {
|
| - *error = mojom::FileError::FAILED;
|
| - return mojo::ScopedHandle();
|
| - }
|
| -
|
| *error = mojom::FileError::OK;
|
| - return mojo::ScopedHandle(mojo::Handle(mojo_handle));
|
| + return mojo::WrapPlatformFile(base_file.TakePlatformFile());
|
| }
|
|
|
| } // namespace filesystem
|
|
|