Tolerate file descriptor close error on Android.

Chrome will crash when the user removes the SD card on certain Android
devices while downloading file to SD card, since closing file
descriptor will throw error.

Instead, on Android, we should tolerate this error as same as other
linux kernel based OS.

Bug: 844148,792775
Change-Id: I293fdcb4fd5277394efab6bca72089feb287cee0
Reviewed-on: https://chromium-review.googlesource.com/1066185
Reviewed-by: David Trainor <dtrainor@chromium.org>
Reviewed-by: Nico Weber <thakis@chromium.org>
Commit-Queue: Xing Liu <xingliu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#560721}

CrOS-Libchrome-Original-Commit: f43149f8bf93d333ab678d7d2342fc88c7b6e405
1 file changed
tree: 4a2844a26e9041be6bcde7b6e2b95c5bbe2f080f
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/