• carlosk's avatar
    Last_n: do not delete the currently loading offline snapshot. · 2319abbf
    carlosk authored
    The code to delete existing offline pages created previously by last_n
    was also causing the deletion of the very offline snapshot currently
    being loaded. This change fixes that by verifying that the snapshot that
    would be deleted is not the same as the one being loaded.
    
    It also changes slightly the way the information of the lastest last_n
    snapshot is cleared: now that only happens when the snapshot is actually
    being deleted.
    
    BUG=718212
    
    Review-Url: https://codereview.chromium.org/2854213005
    Cr-Commit-Position: refs/heads/master@{#469411}
    2319abbf
recent_tab_helper.h 7.22 KB