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

Issue 2595873002: [NTP::RecentTabs] Do not fetch all pages when not a recent tab is added. (Closed)

Created:
4 years ago by vitaliii
Modified:
4 years ago
Reviewers:
jkrcal
CC:
chromium-reviews, ntp-dev+reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[NTP::RecentTabs] Do not fetch all pages when not a recent tab is added. Currently, all offline pages are fetched when a new offline page is added (even it if is not a recent tab). However, there is no sense to refetch if there is no new recent tabs. This CL changes the logic to fetch only when the added offline page is a recent tab. BUG=672433 Committed: https://crrev.com/ad80f041ddc7bff1360592184661fd51bdf414e9 Cr-Commit-Position: refs/heads/master@{#440096}

Patch Set 1 #

Total comments: 4

Patch Set 2 : jkrcal@ nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -15 lines) Patch
M components/ntp_snippets/offline_pages/recent_tab_suggestions_provider.cc View 1 2 chunks +9 lines, -1 line 0 comments Download
M components/ntp_snippets/offline_pages/recent_tab_suggestions_provider_unittest.cc View 1 4 chunks +41 lines, -14 lines 0 comments Download

Messages

Total messages: 16 (10 generated)
vitaliii
[low priority] Hi jkrcal@, PTAL.
4 years ago (2016-12-21 11:24:35 UTC) #4
jkrcal
lgtm https://codereview.chromium.org/2595873002/diff/1/components/ntp_snippets/offline_pages/recent_tab_suggestions_provider.cc File components/ntp_snippets/offline_pages/recent_tab_suggestions_provider.cc (right): https://codereview.chromium.org/2595873002/diff/1/components/ntp_snippets/offline_pages/recent_tab_suggestions_provider.cc#newcode72 components/ntp_snippets/offline_pages/recent_tab_suggestions_provider.cc:72: bool IsClientIdForOfflinePageRecentTab( nit: hard to parse (with the ...
4 years ago (2016-12-21 12:08:29 UTC) #7
vitaliii
I addressed your nits, no need to look. https://codereview.chromium.org/2595873002/diff/1/components/ntp_snippets/offline_pages/recent_tab_suggestions_provider.cc File components/ntp_snippets/offline_pages/recent_tab_suggestions_provider.cc (right): https://codereview.chromium.org/2595873002/diff/1/components/ntp_snippets/offline_pages/recent_tab_suggestions_provider.cc#newcode72 components/ntp_snippets/offline_pages/recent_tab_suggestions_provider.cc:72: bool ...
4 years ago (2016-12-21 13:39:07 UTC) #8
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/2595873002/20001
4 years ago (2016-12-21 13:39:29 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years ago (2016-12-21 14:41:43 UTC) #14
commit-bot: I haz the power
4 years ago (2016-12-21 14:44:07 UTC) #16
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/ad80f041ddc7bff1360592184661fd51bdf414e9
Cr-Commit-Position: refs/heads/master@{#440096}

Powered by Google App Engine
This is Rietveld 408576698