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

Unified Diff: runtime/bin/directory_android.cc

Issue 3005883002: [dart:io] Remove double-close from recursive directory delete (Closed)
Patch Set: Created 3 years, 4 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 | « no previous file | runtime/bin/directory_fuchsia.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/directory_android.cc
diff --git a/runtime/bin/directory_android.cc b/runtime/bin/directory_android.cc
index 21d95ef35d4fa6dff02f5ff5877e3eca9a013de7..9152f919963505df6e706522ede42f2c3aefcf6d 100644
--- a/runtime/bin/directory_android.cc
+++ b/runtime/bin/directory_android.cc
@@ -303,7 +303,6 @@ static bool DeleteRecursively(int dirfd, PathBuffer* path) {
}
// End of directory.
int status = NO_RETRY_EXPECTED(closedir(dir_pointer));
- FDUtils::SaveErrorAndClose(fd);
if (status != 0) {
return false;
}
@@ -364,7 +363,6 @@ static bool DeleteRecursively(int dirfd, PathBuffer* path) {
ASSERT(errno != 0);
int err = errno;
VOID_NO_RETRY_EXPECTED(closedir(dir_pointer));
- FDUtils::SaveErrorAndClose(fd);
errno = err;
return false;
}
« no previous file with comments | « no previous file | runtime/bin/directory_fuchsia.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698