diff options
author | dhg@chromium.org <dhg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-11 17:44:38 +0000 |
---|---|---|
committer | dhg@chromium.org <dhg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-11 17:44:38 +0000 |
commit | a0546e8b88127137fb98ec23eba4254fd12f0d17 (patch) | |
tree | 3c17269ac5940e591f8ff465d1c97843218502ca /base/file_util_posix.cc | |
parent | 184840969ef990a8fb23edfb985d47e74f5253c9 (diff) | |
download | chromium_src-a0546e8b88127137fb98ec23eba4254fd12f0d17.zip chromium_src-a0546e8b88127137fb98ec23eba4254fd12f0d17.tar.gz chromium_src-a0546e8b88127137fb98ec23eba4254fd12f0d17.tar.bz2 |
Adding sync to be called on ChromeOS after a delete operation has. This ensures that if the user deleted something on a sd card, its synced right after.
BUG=chromium-os:2661
TEST=none
Review URL: http://codereview.chromium.org/2735013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49550 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_util_posix.cc')
-rw-r--r-- | base/file_util_posix.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/base/file_util_posix.cc b/base/file_util_posix.cc index da63add..9d738da 100644 --- a/base/file_util_posix.cc +++ b/base/file_util_posix.cc @@ -174,6 +174,9 @@ bool Delete(const FilePath& path, bool recursive) { directories.pop(); success = (rmdir(dir.value().c_str()) == 0); } +#if defined(OS_CHROMEOS) + sync(); +#endif return success; } |