• jkrcal's avatar
    Last visit dates of bookmarks - fix browsing data removal on desktop · f175406f
    jkrcal authored
    Previously, last_visit_date metadata has was removed by
    BookmarkSuggestionProvider via ContentSuggestionService::ClearHistory()
    which only works on Android. This CL makes the removal platform-
    independent. It aims at simplicity to make is easier to merge to M56
    (and does not fix the pre-existing TODO).
    
    The data is collected outside of BookmarkSuggestionProvider (by a tab
    helper). Previously, the tab helper was only instantiated on Android.
    Since M56 the tab helper is created and we thus collect the data on all
    desktop platforms as well. For this reason, we also need to fix the
    browsing data removal.
    
    BUG=673268
    
    Review-Url: https://codereview.chromium.org/2566123002
    Cr-Commit-Position: refs/heads/master@{#438129}
    f175406f
bookmark_suggestions_provider.cc 11.3 KB