| Index: services/files/directory_impl.cc
|
| diff --git a/services/files/directory_impl.cc b/services/files/directory_impl.cc
|
| index 79e523a3ea764cdbf09202b3794120a795275efc..1b17985f9635c88f7a720a3c3df9d71885f17f4d 100644
|
| --- a/services/files/directory_impl.cc
|
| +++ b/services/files/directory_impl.cc
|
| @@ -115,13 +115,13 @@ void DirectoryImpl::Read(const ReadCallback& callback) {
|
| // |closedir()| will close the FD)), so we need to |dup()| ours.
|
| base::ScopedFD fd(dup(dir_fd_.get()));
|
| if (!fd.is_valid()) {
|
| - callback.Run(ErrnoToError(errno), Array<DirectoryEntryPtr>());
|
| + callback.Run(ErrnoToError(errno), nullptr);
|
| return;
|
| }
|
|
|
| ScopedDIR dir(fdopendir(fd.release()));
|
| if (!dir) {
|
| - callback.Run(ErrnoToError(errno), Array<DirectoryEntryPtr>());
|
| + callback.Run(ErrnoToError(errno), nullptr);
|
| return;
|
| }
|
|
|
| @@ -137,7 +137,7 @@ void DirectoryImpl::Read(const ReadCallback& callback) {
|
| struct dirent* entry = nullptr;
|
| if (int error = readdir_r(dir.get(), &buffer, &entry)) {
|
| // |error| is effectively an errno (for |readdir_r()|), AFAICT.
|
| - callback.Run(ErrnoToError(error), Array<DirectoryEntryPtr>());
|
| + callback.Run(ErrnoToError(error), nullptr);
|
| return;
|
| }
|
|
|
|
|