Fix access violation in drive sync engine.
The introduction of team drives means that calling DriveAPIService::GetChangeList can return a ChangeList object that contains both FileResource and TeamDriveResource entries. The sync engine code is not TeamDriveResource aware and assumes that ChangeList can only contain FileResource entries, and calling ChangeResource::File() will return a nullptr that later causes an AV in PopulateFileDetailsByFileResource. This CL filters out TeamDriveResource from the ChangeList object. Verified with new unit test. Bug: 850228 Change-Id: I1d8f4e8a99df8b8b04683eccaaceae4843020bda Reviewed-on: https://chromium-review.googlesource.com/1212366 Commit-Queue: Stuart Langley <slangley@chromium.org> Reviewed-by:Kinuko Yasuda <kinuko@chromium.org> Cr-Commit-Position: refs/heads/master@{#589826}
Showing
Please register or sign in to comment