arc: Use directory cache when getting ExtraFileMetadata for an entry
The cache was introduced in https://crrev.com/c/616409 but was only used to get File::Info for an entry, and the calls to get ExtraFileMetadata made a mojo call each time, even though both functions draw data from the same source (ARC Document objects). It did not impact read-only providers, as the extra metadata returned for them is currently static, but this will change when dynamic metadata is added (DocumentsProvider thumbnail flag). Also, ArcDocumentsProviderRoot::GetMetadata is renamed to GetExtraFileMetadata to disambiguate it from a file system operation with the same name. Bug: 1049966 Change-Id: I94e0dc50e8a646a68b8c7b76e398c7777f4da121 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2464518 Commit-Queue: Alexander Bolodurin <alexbn@google.com> Reviewed-by:Naoki Fukino <fukino@chromium.org> Reviewed-by:
Ryo Hashimoto <hashimoto@chromium.org> Cr-Commit-Position: refs/heads/master@{#816542}
Showing
Please register or sign in to comment