Refactor SmbFileSystem to use GetDeleteList

This change updates the DeleteEntry method on SmbFileSystem to use
GetDeleteList. When a DeleteEntry call comes in from the Files API,
SmbFileSystem first makes a call to GetDeleteList in order to get an
ordered list of entries that need to be deleted, and subsequently
calls DeleteEntry on each entry in the list.

If there is an error generating the delete_list, delete will still
be attempted on any entries in the delete_list, and the error will
be returned. Otherwise (ie generating the delete_list succeeds), the
error_code from performing the deletes willbe returned.


Bug: chromium:757625
Test: verified recursive delete still works on Eve
Change-Id: I1afb3498ee51280d70291dd31f50a550129c4381
Reviewed-on: https://chromium-review.googlesource.com/937881
Reviewed-by: Zentaro Kavanagh <zentaro@chromium.org>
Commit-Queue: Bailey Berro <baileyberro@chromium.org>
Cr-Commit-Position: refs/heads/master@{#542252}
2 files changed