| Index: components/filesystem/directory_impl.cc
|
| diff --git a/components/filesystem/directory_impl.cc b/components/filesystem/directory_impl.cc
|
| index 5174477a3fce3e85703e369b588bd6461af2a1a7..8577078a0da2771108e1ba83a084a36ec940e7b3 100644
|
| --- a/components/filesystem/directory_impl.cc
|
| +++ b/components/filesystem/directory_impl.cc
|
| @@ -224,7 +224,8 @@ void DirectoryImpl::IsWritable(const std::string& raw_path,
|
| }
|
|
|
| void DirectoryImpl::Flush(const FlushCallback& callback) {
|
| - base::File file(directory_path_, base::File::FLAG_READ);
|
| + base::File file(directory_path_,
|
| + base::File::FLAG_OPEN | base::File::FLAG_READ);
|
| if (!file.IsValid()) {
|
| callback.Run(GetError(file));
|
| return;
|
|
|