• hirono's avatar
    Gallery: Obtain metadata from MetadataCache when saving items. · 699c53eb
    hirono authored
    Previously, when saving items, the new metadata was generated by
    GalleryDataModel. But the generated metadata was broken and it contained old
    thumbnail data that causes memory shortage.
    
    The metadata for new items can be otained by using normal code path
    (MetadataCache), so the CL removes special geneartion of metadata for new items
    and let Gallery obtain the metadata by using MeatadataCache.
    
    BUG=439898
    TEST=GalleryJsTest.GalleryItemTest
    
    Review URL: https://codereview.chromium.org/802283005
    
    Cr-Commit-Position: refs/heads/master@{#310205}
    699c53eb
gallery_item.js 11 KB