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

Unified Diff: services/files/directory_impl.cc

Issue 1539843004: Support some file operations in dart:io under mojo (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years 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 | « services/dart/dart_apptests/lib/src/file_apptests.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/files/directory_impl.cc
diff --git a/services/files/directory_impl.cc b/services/files/directory_impl.cc
index 1b17985f9635c88f7a720a3c3df9d71885f17f4d..3309cdb5adae6d2983fdf6061e238388b335cd08 100644
--- a/services/files/directory_impl.cc
+++ b/services/files/directory_impl.cc
@@ -262,7 +262,7 @@ void DirectoryImpl::OpenDirectory(const String& path,
// Allow |EEXIST| if |kOpenFlagExclusive| is not set. Note, however, that
// it does not guarantee that |path| is a directory.
// TODO(vtl): Hrm, ponder if we should check that |path| is a directory.
- if (errno != EEXIST || !(open_flags & kOpenFlagExclusive)) {
+ if ((errno != EEXIST) || (open_flags & kOpenFlagExclusive)) {
callback.Run(ErrnoToError(errno));
return;
}
« no previous file with comments | « services/dart/dart_apptests/lib/src/file_apptests.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698