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

Issue 2742433002: 📰 Do not refresh Tiles while visible (Closed)

Created:
3 years, 9 months ago by dgn
Modified:
3 years, 9 months ago
CC:
chromium-reviews, noyau+watch_chromium.org, ntp-dev+reviews_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[NTP Client] Do not refresh Tiles while visible Tiles are now refreshed when: - The TileGroup first receives data - The user explicitly modifies the tiles (removes one) - The user switches to an existing NTP or opens Home Known issues: - New NTPs might have stale data because on registration it pulls the currently cached tile data, then refreshes it expecting the NTP to display the changes. But this patches explicitly blocks that. BUG=694262 Review-Url: https://codereview.chromium.org/2742433002 Cr-Commit-Position: refs/heads/master@{#455806} Committed: https://chromium.googlesource.com/chromium/src/+/2d368dbfe6323fe630398869d3e82c7d728a1035

Patch Set 1 #

Patch Set 2 : Documentation and cleanup #

Patch Set 3 : Fix NewTabPageTest#testPlaceholders #

Patch Set 4 : Add tests, always clear pending data when calling loadTiles #

Patch Set 5 : move loadTiles with other private methods #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+149 lines, -21 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/NativePageHost.java View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ntp/NativePageFactory.java View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPageView.java View 1 2 3 chunks +12 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/NewTabPageAdapter.java View 1 3 chunks +9 lines, -3 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/suggestions/SuggestionsUiDelegate.java View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/suggestions/SuggestionsUiDelegateImpl.java View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/suggestions/TileGrid.java View 1 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/suggestions/TileGroup.java View 1 2 3 4 6 chunks +54 lines, -18 lines 1 comment Download
M chrome/android/java/src/org/chromium/chrome/browser/widget/BottomSheet.java View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/ntp/NewTabPageTest.java View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/ntp/snippets/ArticleSnippetsTest.java View 1 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/android/junit/src/org/chromium/chrome/browser/suggestions/TileGroupTest.java View 1 2 3 1 chunk +38 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (16 generated)
dgn
PTAL
3 years, 9 months ago (2017-03-08 17:43:36 UTC) #4
Bernhard Bauer
lgtm
3 years, 9 months ago (2017-03-08 17:56:25 UTC) #6
dgn
PTAL. Meaningful change: I now always replace mTiles with the pending data, even if I ...
3 years, 9 months ago (2017-03-09 12:12:36 UTC) #11
dgn
note: patchset 4 should be easier that 5 to review vs master
3 years, 9 months ago (2017-03-09 12:14:34 UTC) #12
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/2742433002/80001
3 years, 9 months ago (2017-03-09 18:35:35 UTC) #19
Bernhard Bauer
Sry, still LGTM. One nit, but you could do that in a followup. https://codereview.chromium.org/2742433002/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/suggestions/TileGroup.java File ...
3 years, 9 months ago (2017-03-09 18:38:12 UTC) #20
commit-bot: I haz the power
3 years, 9 months ago (2017-03-09 18:41:34 UTC) #23
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/2d368dbfe6323fe630398869d3e8...

Powered by Google App Engine
This is Rietveld 408576698