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

Issue 2668943002: provide static popular sites for first run (Closed)

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

Description

provide static popular sites for first run For users with slow internet, a selection of popular sites that come with the binary can improve the first run experience. BUG=672939 Review-Url: https://codereview.chromium.org/2668943002 Cr-Commit-Position: refs/heads/master@{#450637} Committed: https://chromium.googlesource.com/chromium/src/+/7d16fb2132a21ea413ecaca45e0e4b4570594c12

Patch Set 1 #

Patch Set 2 : Resolving huge merge conflicts. #

Patch Set 3 : Reverted changed callback testing. #

Patch Set 4 : Move default site definition into resource file #

Total comments: 20

Patch Set 5 : Remove unnecessary rebuild. Fix tests. #

Total comments: 4

Patch Set 6 : Revert test changes. Construction of PopularSites is always safe. #

Total comments: 8

Patch Set 7 : Add dependencies. Protect access with field_trial #

Total comments: 2

Patch Set 8 : most_visited_unittest registers prefs properly. #

Total comments: 11

Patch Set 9 : Clean build/DEPS files #

Unified diffs Side-by-side diffs Delta from patch set Stats (+146 lines, -27 lines) Patch
M components/ntp_tiles/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M components/ntp_tiles/DEPS View 1 2 3 7 8 2 chunks +2 lines, -0 lines 0 comments Download
M components/ntp_tiles/most_visited_sites.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -4 lines 0 comments Download
M components/ntp_tiles/most_visited_sites_unittest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download
M components/ntp_tiles/popular_sites_impl.cc View 1 2 3 4 5 6 7 8 6 chunks +24 lines, -12 lines 0 comments Download
M components/ntp_tiles/popular_sites_impl_unittest.cc View 1 2 3 4 5 6 9 chunks +72 lines, -9 lines 0 comments Download
A components/ntp_tiles/resources/default_popular_sites.json View 1 2 3 1 chunk +42 lines, -0 lines 0 comments Download
M components/resources/ntp_tiles_resources.grdp View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 52 (27 generated)
fhorschig
Hi Chris, would you please take a look?
3 years, 10 months ago (2017-02-08 18:38:03 UTC) #2
Michael van Ouwerkerk
https://codereview.chromium.org/2668943002/diff/60001/components/ntp_tiles/resources/default_popular_sites.json File components/ntp_tiles/resources/default_popular_sites.json (right): https://codereview.chromium.org/2668943002/diff/60001/components/ntp_tiles/resources/default_popular_sites.json#newcode38 components/ntp_tiles/resources/default_popular_sites.json:38: "title": "Electronics, Cars, Fashion, Collectibles, Coupons and More | ...
3 years, 10 months ago (2017-02-09 11:09:01 UTC) #3
fhorschig
https://codereview.chromium.org/2668943002/diff/60001/components/ntp_tiles/resources/default_popular_sites.json File components/ntp_tiles/resources/default_popular_sites.json (right): https://codereview.chromium.org/2668943002/diff/60001/components/ntp_tiles/resources/default_popular_sites.json#newcode38 components/ntp_tiles/resources/default_popular_sites.json:38: "title": "Electronics, Cars, Fashion, Collectibles, Coupons and More | ...
3 years, 10 months ago (2017-02-09 12:21:36 UTC) #4
Michael van Ouwerkerk
On 2017/02/09 12:21:36, fhorschig wrote: > https://codereview.chromium.org/2668943002/diff/60001/components/ntp_tiles/resources/default_popular_sites.json > File components/ntp_tiles/resources/default_popular_sites.json (right): > > https://codereview.chromium.org/2668943002/diff/60001/components/ntp_tiles/resources/default_popular_sites.json#newcode38 > ...
3 years, 10 months ago (2017-02-09 12:23:39 UTC) #5
tschumann
On 2017/02/09 12:23:39, Michael van Ouwerkerk wrote: > On 2017/02/09 12:21:36, fhorschig wrote: > > ...
3 years, 10 months ago (2017-02-09 12:27:15 UTC) #6
sfiera
https://codereview.chromium.org/2668943002/diff/60001/components/ntp_tiles/most_visited_sites.cc File components/ntp_tiles/most_visited_sites.cc (right): https://codereview.chromium.org/2668943002/diff/60001/components/ntp_tiles/most_visited_sites.cc#newcode425 components/ntp_tiles/most_visited_sites.cc:425: if (current_tiles_.empty()) { Can this actually happen? For a ...
3 years, 10 months ago (2017-02-09 12:39:06 UTC) #7
fhorschig
On 2017/02/09 12:27:15, tschumann wrote: > On 2017/02/09 12:23:39, Michael van Ouwerkerk wrote: > > ...
3 years, 10 months ago (2017-02-09 12:39:25 UTC) #8
fhorschig
The MostLikely unittests had to be changed. They assumed that the registration of popular sites ...
3 years, 10 months ago (2017-02-09 15:30:18 UTC) #9
sfiera
On 2017/02/09 15:30:18, fhorschig wrote: > The MostLikely unittests had to be changed. > They ...
3 years, 10 months ago (2017-02-10 10:40:03 UTC) #10
fhorschig
https://codereview.chromium.org/2668943002/diff/60001/components/resources/ntp_tiles_resources.grdp File components/resources/ntp_tiles_resources.grdp (right): https://codereview.chromium.org/2668943002/diff/60001/components/resources/ntp_tiles_resources.grdp#newcode8 components/resources/ntp_tiles_resources.grdp:8: <include name="IDR_DEFAULT_POPULAR_SITES_JSON" file="../ntp_tiles/resources/default_popular_sites.json" type="BINDATA" /> On 2017/02/10 10:40:03, sfiera ...
3 years, 10 months ago (2017-02-13 10:34:13 UTC) #11
fhorschig
3 years, 10 months ago (2017-02-13 10:34:15 UTC) #12
sfiera
https://codereview.chromium.org/2668943002/diff/100001/components/ntp_tiles/popular_sites_impl.cc File components/ntp_tiles/popular_sites_impl.cc (right): https://codereview.chromium.org/2668943002/diff/100001/components/ntp_tiles/popular_sites_impl.cc#newcode133 components/ntp_tiles/popular_sites_impl.cc:133: if (command_line->HasSwitch(ntp_tiles::switches::kDisableNTPPopularSites)) { This check is not sufficient; use ...
3 years, 10 months ago (2017-02-13 10:58:01 UTC) #17
fhorschig
https://codereview.chromium.org/2668943002/diff/100001/components/ntp_tiles/popular_sites_impl.cc File components/ntp_tiles/popular_sites_impl.cc (right): https://codereview.chromium.org/2668943002/diff/100001/components/ntp_tiles/popular_sites_impl.cc#newcode133 components/ntp_tiles/popular_sites_impl.cc:133: if (command_line->HasSwitch(ntp_tiles::switches::kDisableNTPPopularSites)) { On 2017/02/13 10:58:01, sfiera wrote: > ...
3 years, 10 months ago (2017-02-13 14:57:00 UTC) #25
sfiera
https://codereview.chromium.org/2668943002/diff/100001/components/ntp_tiles/popular_sites_impl.cc File components/ntp_tiles/popular_sites_impl.cc (right): https://codereview.chromium.org/2668943002/diff/100001/components/ntp_tiles/popular_sites_impl.cc#newcode133 components/ntp_tiles/popular_sites_impl.cc:133: if (command_line->HasSwitch(ntp_tiles::switches::kDisableNTPPopularSites)) { On 2017/02/13 14:57:00, fhorschig wrote: > ...
3 years, 10 months ago (2017-02-13 15:05:54 UTC) #26
fhorschig
https://codereview.chromium.org/2668943002/diff/100001/components/ntp_tiles/popular_sites_impl.cc File components/ntp_tiles/popular_sites_impl.cc (right): https://codereview.chromium.org/2668943002/diff/100001/components/ntp_tiles/popular_sites_impl.cc#newcode133 components/ntp_tiles/popular_sites_impl.cc:133: if (command_line->HasSwitch(ntp_tiles::switches::kDisableNTPPopularSites)) { On 2017/02/13 15:05:54, sfiera wrote: > ...
3 years, 10 months ago (2017-02-13 18:13:44 UTC) #27
sfiera
LGTM
3 years, 10 months ago (2017-02-13 18:16:43 UTC) #28
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/2668943002/200001
3 years, 10 months ago (2017-02-14 08:51:09 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/363738)
3 years, 10 months ago (2017-02-14 08:57:16 UTC) #36
fhorschig
Hi avi@ and sdefresne@, would you please have a look at my CL? It uses ...
3 years, 10 months ago (2017-02-14 09:14:48 UTC) #38
sdefresne
lgtm https://codereview.chromium.org/2668943002/diff/200001/components/ntp_tiles/BUILD.gn File components/ntp_tiles/BUILD.gn (right): https://codereview.chromium.org/2668943002/diff/200001/components/ntp_tiles/BUILD.gn#newcode56 components/ntp_tiles/BUILD.gn:56: "//components/resources:components_resources", "//components/resources", https://codereview.chromium.org/2668943002/diff/200001/components/ntp_tiles/BUILD.gn#newcode61 components/ntp_tiles/BUILD.gn:61: "//ui/base:base", "//ui/base", https://codereview.chromium.org/2668943002/diff/200001/components/ntp_tiles/DEPS File ...
3 years, 10 months ago (2017-02-14 12:37:35 UTC) #39
sdefresne
https://codereview.chromium.org/2668943002/diff/200001/components/ntp_tiles/resources/default_popular_sites.json File components/ntp_tiles/resources/default_popular_sites.json (right): https://codereview.chromium.org/2668943002/diff/200001/components/ntp_tiles/resources/default_popular_sites.json#newcode5 components/ntp_tiles/resources/default_popular_sites.json:5: "large_icon_url": "https://static.xx.fbcdn.net/rsrc.php/v3/ya/r/O2aKM2iSbOw.png" On 2017/02/14 12:37:35, sdefresne wrote: > How ...
3 years, 10 months ago (2017-02-14 12:38:36 UTC) #40
Avi (use Gerrit)
Resources LGTM
3 years, 10 months ago (2017-02-14 15:53:53 UTC) #41
fhorschig
https://codereview.chromium.org/2668943002/diff/200001/components/ntp_tiles/BUILD.gn File components/ntp_tiles/BUILD.gn (right): https://codereview.chromium.org/2668943002/diff/200001/components/ntp_tiles/BUILD.gn#newcode56 components/ntp_tiles/BUILD.gn:56: "//components/resources:components_resources", On 2017/02/14 12:37:35, sdefresne wrote: > "//components/resources", Done. ...
3 years, 10 months ago (2017-02-14 17:24:16 UTC) #42
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/2668943002/220001
3 years, 10 months ago (2017-02-15 08:22:47 UTC) #49
commit-bot: I haz the power
3 years, 10 months ago (2017-02-15 08:28:51 UTC) #52
Message was sent while issue was closed.
Committed patchset #9 (id:220001) as
https://chromium.googlesource.com/chromium/src/+/7d16fb2132a21ea413ecaca45e0e...

Powered by Google App Engine
This is Rietveld 408576698