Download location: Fix an issue in getAllPrivateDownloadsDirectories.

Android API Context.getExternalFilesDirs may return a null File object
when the user unmount the SD card at some point. This CL handles the
null object cleanly so it won't trigger NullPointerException.

TBR=nyquist@chromium.org

Bug: 838419
Change-Id: I0efc8c793e45383d49038688b9af4076eeb54328
Reviewed-on: https://chromium-review.googlesource.com/1056287
Reviewed-by: David Trainor <dtrainor@chromium.org>
Commit-Queue: Xing Liu <xingliu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#558418}

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