Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Unified Diff: components/filesystem/directory_impl.cc

Issue 1624683002: mash: Add a simple, temporary preferences store. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sky comments Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/filesystem/DEPS ('k') | components/filesystem/directory_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/filesystem/directory_impl.cc
diff --git a/components/filesystem/directory_impl.cc b/components/filesystem/directory_impl.cc
index 715c31f200c541f608fa351b1361221c0fdb65c5..8c86fc7043bb47dd7f9c2a4b6a260f79277d9e28 100644
--- a/components/filesystem/directory_impl.cc
+++ b/components/filesystem/directory_impl.cc
@@ -70,7 +70,7 @@ void DirectoryImpl::OpenFile(const mojo::String& raw_path,
base::File base_file(path, open_flags);
if (!base_file.IsValid()) {
- callback.Run(FileError::FAILED);
+ callback.Run(GetError(base_file));
return;
}
@@ -203,7 +203,7 @@ void DirectoryImpl::IsWritable(const mojo::String& raw_path,
void DirectoryImpl::Flush(const FlushCallback& callback) {
base::File file(directory_path_, base::File::FLAG_READ);
if (!file.IsValid()) {
- callback.Run(FileError::FAILED);
+ callback.Run(GetError(file));
return;
}
« no previous file with comments | « components/filesystem/DEPS ('k') | components/filesystem/directory_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698