summaryrefslogtreecommitdiffstats
path: root/base/file_util_posix.cc
diff options
context:
space:
mode:
authorgspencer@chromium.org <gspencer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-12 04:23:04 +0000
committergspencer@chromium.org <gspencer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-12 04:23:04 +0000
commitacf879fc6ac06b8caada5dd2c79f0ae4c61cc25d (patch)
tree72eaa761390122cac70fcb01410fdd92c51c8e03 /base/file_util_posix.cc
parent090bc22fd9703492c5cf2f76a0a9c16ffa580e0a (diff)
downloadchromium_src-acf879fc6ac06b8caada5dd2c79f0ae4c61cc25d.zip
chromium_src-acf879fc6ac06b8caada5dd2c79f0ae4c61cc25d.tar.gz
chromium_src-acf879fc6ac06b8caada5dd2c79f0ae4c61cc25d.tar.bz2
Removing sync from file_util::Delete for ChromeOS.
This was added to address a problem with SD cards not always deleting files that were deleted from the ChromeOS file browser. Since it doesn't always fix the problem anyhow, and since the file browser isn't in beta, I'm removing the extra sync call, because it increases the time it takes to run recursive delete by about three orders of magnitude, and was slowing down some tests. I've filed bug http://code.google.com/p/chromium-os/issues/detail?id=7196 so we can address this at a later time. [This has already been reviewed and LGTM'd here: http://codereview.chromium.org/3697005/show] BUG=none TEST=ran base unittests Review URL: http://codereview.chromium.org/3706005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62245 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_util_posix.cc')
-rw-r--r--base/file_util_posix.cc3
1 files changed, 0 insertions, 3 deletions
diff --git a/base/file_util_posix.cc b/base/file_util_posix.cc
index 3709afd..4eae781 100644
--- a/base/file_util_posix.cc
+++ b/base/file_util_posix.cc
@@ -174,9 +174,6 @@ bool Delete(const FilePath& path, bool recursive) {
directories.pop();
success = (rmdir(dir.value().c_str()) == 0);
}
-#if defined(OS_CHROMEOS)
- sync();
-#endif
return success;
}