Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Issue 2854213005: Last_n: do not delete the currently loading offline snapshot. (Closed)

Created:
3 years, 7 months ago by carlosk
Modified:
3 years, 7 months ago
Reviewers:
Dmitry Titov, dewittj
CC:
chromium-reviews, romax+watch_chromium.org, fgorski+watch_chromium.org, dewittj+watch_chromium.org, petewil+watch_chromium.org, chili+watch_chromium.org, dimich+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Last_n: do not delete the currently loading offline snapshot. 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} Committed: https://chromium.googlesource.com/chromium/src/+/2319abbff11d73330235314486b7dec03f1b32e0

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -7 lines) Patch
M chrome/browser/android/offline_pages/recent_tab_helper.h View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/android/offline_pages/recent_tab_helper.cc View 4 chunks +22 lines, -6 lines 0 comments Download

Messages

Total messages: 13 (8 generated)
carlosk
dewittj@, dimich@ PTAL.
3 years, 7 months ago (2017-05-04 02:07:38 UTC) #4
Dmitry Titov
lgtm
3 years, 7 months ago (2017-05-04 18:49:07 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2854213005/1
3 years, 7 months ago (2017-05-04 18:56:46 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://chromium.googlesource.com/chromium/src/+/2319abbff11d73330235314486b7dec03f1b32e0
3 years, 7 months ago (2017-05-04 19:05:06 UTC) #12
dewittj
3 years, 7 months ago (2017-05-04 19:45:26 UTC) #13
Message was sent while issue was closed.
lgtm

Powered by Google App Engine
This is Rietveld 408576698