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

Issue 2365313002: Reland: Ntp: restore scroll position. (Closed)

Created:
4 years, 2 months ago by Michael van Ouwerkerk
Modified:
4 years, 2 months ago
Reviewers:
Ted C, Bernhard Bauer, clamy
CC:
chromium-reviews, creis+watch_chromium.org, ntp-dev+reviews_chromium.org, nasko+codewatch_chromium.org, jam, darin-cc_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reland: Ntp: restore scroll position. * The scroll position is stored as extra data on the NavigationEntry. * The main use case handled is when the user clicks on a suggested article and then back to view more suggestions. Maintaining scroll position helps maintain context and flow here. * It is the RecyclerView Adapter position that is stored and restored, so if the device is rotated in the meantime, scroll restore will still present the same content as long as the underlying data has not changed. * Because the underlying data is subject to change a few times per day, the scroll position is not persisted. It would be confusing the restore to an old position that now shows different content. BUG=606356 TBR=clamy,bauerb,tedchoc CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/22b18a9a6d4f421ddb6d4f74280a571bf7dca4f6 Cr-Commit-Position: refs/heads/master@{#420075} patch from issue 2327083002 at patchset 160001 (http://crrev.com/2327083002#ps160001) Committed: https://crrev.com/2c78ced6c8ce46eec8c9f7100b14b3414b7cbc07 Committed: https://crrev.com/5b1519e7304f1a6d2f1c3e50c2d8a933e21f2806 Cr-Original-Commit-Position: refs/heads/master@{#420896} Cr-Commit-Position: refs/heads/master@{#421223}

Patch Set 1 #

Patch Set 2 : Avoid storing NO_POSITION #

Total comments: 2

Patch Set 3 : Do not run Java assert, it really just happens sometimes. #

Patch Set 4 : Rebase. #

Messages

Total messages: 26 (13 generated)
Michael van Ouwerkerk
This is a reland of https://codereview.chromium.org/2327083002. The diff is between patch set 1 and 2. ...
4 years, 2 months ago (2016-09-26 13:17:12 UTC) #2
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/2365313002/20001
4 years, 2 months ago (2016-09-26 13:18:05 UTC) #5
Bernhard Bauer
lgtm
4 years, 2 months ago (2016-09-26 13:49:23 UTC) #6
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 2 months ago (2016-09-26 15:53:53 UTC) #8
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/2c78ced6c8ce46eec8c9f7100b14b3414b7cbc07 Cr-Commit-Position: refs/heads/master@{#420896}
4 years, 2 months ago (2016-09-26 15:57:57 UTC) #10
Ted C
https://codereview.chromium.org/2365313002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPage.java File chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPage.java (right): https://codereview.chromium.org/2365313002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPage.java#newcode878 chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPage.java:878: if (scrollPositionData == null) return RecyclerView.NO_POSITION; I was testing ...
4 years, 2 months ago (2016-09-26 18:40:26 UTC) #11
Khushal
A revert of this CL (patchset #2 id:20001) has been created in https://codereview.chromium.org/2370023002/ by khushalsagar@chromium.org. ...
4 years, 2 months ago (2016-09-26 19:33:32 UTC) #12
Michael van Ouwerkerk
Ok I was finally able to reproduce the crash by enabling debug.assert on a pre-L ...
4 years, 2 months ago (2016-09-27 14:36:58 UTC) #13
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/2365313002/40001
4 years, 2 months ago (2016-09-27 14:38:00 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/76015) mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 2 months ago (2016-09-27 14:40:28 UTC) #19
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/2365313002/60001
4 years, 2 months ago (2016-09-27 15:13:43 UTC) #22
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 2 months ago (2016-09-27 15:48:06 UTC) #24
commit-bot: I haz the power
4 years, 2 months ago (2016-09-27 15:52:03 UTC) #26
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/5b1519e7304f1a6d2f1c3e50c2d8a933e21f2806
Cr-Commit-Position: refs/heads/master@{#421223}

Powered by Google App Engine
This is Rietveld 408576698