[fuchsia] remove Fuchsia-specific code in MoveFileOrDirectory

ZX-1729 has been fixed upstream

Change-Id: Ia9c55b13169db650eb4ca0562434ae19a6f44eaf
Reviewed-on: https://chromium-review.googlesource.com/c/1366638
Reviewed-by: Scott Graham <scottmg@chromium.org>
Commit-Queue: Francois Rousseau <frousseau@google.com>
This commit is contained in:
Francois Rousseau 2018-12-06 14:23:20 -08:00 committed by Commit Bot
parent 1a9209b581
commit 9b6dde9101

View File

@ -65,14 +65,6 @@ bool LoggingCreateDirectory(const base::FilePath& path,
bool MoveFileOrDirectory(const base::FilePath& source,
const base::FilePath& dest) {
#if defined(OS_FUCHSIA)
// Fuchsia fails and sets errno to EINVAL if source and dest are the same.
// Upstream bug is ZX-1729.
if (!source.empty() && source == dest) {
return true;
}
#endif // OS_FUCHSIA
if (rename(source.value().c_str(), dest.value().c_str()) != 0) {
PLOG(ERROR) << "rename " << source.value().c_str() << ", "
<< dest.value().c_str();