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

Issue 2698713002: Last_n: create snapshots from user triggers even if similar quality ones exist. (Closed)

Created:
3 years, 10 months ago by carlosk
Modified:
3 years, 10 months ago
Reviewers:
Dmitry Titov
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/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Last_n: create snapshots from user triggers even if similar quality ones exist. With this change when a tab-hidden event happens a last_n snapshot will be created even if one already exists with the same expected quality level. This should fix cases of very dynamic pagesnot being properly saved, where contents are completely changed without clear navigation or loading events being triggered. This also re-introduces the ignoring of same-page navigations when listening to DidFinishNavigation so that we don't reset the loading state of the page in those cases. BUG=691506, 678367 Review-Url: https://codereview.chromium.org/2698713002 Cr-Commit-Position: refs/heads/master@{#451819} Committed: https://chromium.googlesource.com/chromium/src/+/f0b30fafe9d73f73c430895d289ab83c3e818d20

Patch Set 1 #

Patch Set 2 : Snapshots use the current URL from the WebContents instead of an old one. #

Patch Set 3 : Add unit test for same page navigations. #

Patch Set 4 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -39 lines) Patch
M chrome/browser/android/offline_pages/recent_tab_helper.h View 1 2 3 2 chunks +0 lines, -9 lines 0 comments Download
M chrome/browser/android/offline_pages/recent_tab_helper.cc View 1 2 3 7 chunks +13 lines, -21 lines 0 comments Download
M chrome/browser/android/offline_pages/recent_tab_helper_unittest.cc View 1 2 3 3 chunks +48 lines, -9 lines 0 comments Download

Messages

Total messages: 27 (19 generated)
carlosk
dimich@: PTAL.
3 years, 10 months ago (2017-02-15 19:19:23 UTC) #4
Dmitry Titov
lgtm
3 years, 10 months ago (2017-02-15 19:26:44 UTC) #5
carlosk
dimich@ could you PTA(nother)L? I had to change the way we store and record the ...
3 years, 10 months ago (2017-02-15 21:53:07 UTC) #8
Dmitry Titov
Still lgtm
3 years, 10 months ago (2017-02-17 23:34:09 UTC) #17
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/2698713002/40001
3 years, 10 months ago (2017-02-17 23:49:22 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/156061) ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 10 months ago (2017-02-17 23:54:51 UTC) #21
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/2698713002/60001
3 years, 10 months ago (2017-02-21 18:18:06 UTC) #24
commit-bot: I haz the power
3 years, 10 months ago (2017-02-21 19:37:54 UTC) #27
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/f0b30fafe9d73f73c430895d289a...

Powered by Google App Engine
This is Rietveld 408576698