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

Issue 2557103004: Add chrome://site-tiles-internals/ (Closed)

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

Description

Add chrome://ntp-tiles-internals/ Implement it for Android, Desktop, and iOS. This largely supersedes chrome://popular-sites-internals/. Relative to that, it lacks a way to see the cached JSON and the status of a manual fetch. BUG=655622 Committed: https://crrev.com/876fe79ca447c79d6b81738df6e756716faa9458 Cr-Commit-Position: refs/heads/master@{#438205}

Patch Set 1 #

Patch Set 2 : git cl format #

Patch Set 3 : Fix gn check #

Total comments: 46

Patch Set 4 : Support iOS #

Total comments: 4

Patch Set 5 : Address review comments #

Total comments: 22

Patch Set 6 : Address comments #

Total comments: 4

Patch Set 7 : ntp-tiles-internals #

Total comments: 20

Patch Set 8 : Fix ntp_tiles_resources.grdp ownership #

Patch Set 9 : rebase #

Patch Set 10 : IsSourceEnabled() #

Patch Set 11 : Don't check ShouldShowPopularSites() #

Patch Set 12 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+929 lines, -66 lines) Patch
M chrome/browser/ui/BUILD.gn View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc View 1 2 3 4 5 6 2 chunks +3 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/ntp_tiles_internals_ui.h View 1 2 3 4 5 6 1 chunk +21 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/ntp_tiles_internals_ui.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +151 lines, -0 lines 0 comments Download
M chrome/common/url_constants.h View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/common/url_constants.cc View 1 2 3 4 5 6 3 chunks +3 lines, -0 lines 0 comments Download
M components/ntp_tiles/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M components/ntp_tiles/popular_sites.h View 1 chunk +5 lines, -0 lines 0 comments Download
M components/ntp_tiles/popular_sites.cc View 3 chunks +59 lines, -58 lines 0 comments Download
A components/ntp_tiles/webui/ntp_tiles_internals_message_handler.h View 1 2 3 4 5 6 7 1 chunk +61 lines, -0 lines 0 comments Download
A components/ntp_tiles/webui/ntp_tiles_internals_message_handler.cc View 1 2 3 4 5 6 7 8 9 1 chunk +160 lines, -0 lines 0 comments Download
A components/ntp_tiles/webui/ntp_tiles_internals_message_handler_client.h View 1 2 3 4 5 6 7 8 9 1 chunk +71 lines, -0 lines 0 comments Download
A components/ntp_tiles/webui/ntp_tiles_internals_message_handler_client.cc View 1 2 3 4 5 6 7 1 chunk +14 lines, -0 lines 0 comments Download
A components/ntp_tiles/webui/resources/ntp_tiles_internals.css View 1 2 3 4 5 6 1 chunk +54 lines, -0 lines 0 comments Download
A components/ntp_tiles/webui/resources/ntp_tiles_internals.html View 1 2 3 4 5 6 1 chunk +117 lines, -0 lines 0 comments Download
A components/ntp_tiles/webui/resources/ntp_tiles_internals.js View 1 2 3 4 5 6 1 chunk +43 lines, -0 lines 0 comments Download
M components/resources/OWNERS View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M components/resources/ntp_tiles_resources.grdp View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M ios/chrome/browser/chrome_url_constants.h View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M ios/chrome/browser/chrome_url_constants.cc View 1 2 3 4 5 6 3 chunks +9 lines, -7 lines 0 comments Download
M ios/chrome/browser/ui/webui/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
A ios/chrome/browser/ui/webui/ntp_tiles_internals_ui.h View 1 2 3 4 5 6 1 chunk +23 lines, -0 lines 0 comments Download
A ios/chrome/browser/ui/webui/ntp_tiles_internals_ui.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +118 lines, -0 lines 0 comments Download

Messages

Total messages: 71 (38 generated)
sfiera
Happy to demo this to you on Android or Desktop. Not yet happy to demo ...
4 years ago (2016-12-08 14:00:49 UTC) #2
sfiera
Also note that the change to Chrome prefs will be obsoleted by your in-flight CL. ...
4 years ago (2016-12-08 14:02:03 UTC) #3
sfiera
iOS now included. Easy-peasy.
4 years ago (2016-12-08 15:38:11 UTC) #15
Marc Treib
First batch of comments, haven't looked at the ios part yet. https://codereview.chromium.org/2557103004/diff/40001/chrome/browser/ui/webui/site_tiles_internals_ui.cc File chrome/browser/ui/webui/site_tiles_internals_ui.cc (right): ...
4 years ago (2016-12-08 15:41:50 UTC) #16
Marc Treib
Ah, and one top-level comment: Why "site tiles"? Why not "NTP tiles", to stay consistent ...
4 years ago (2016-12-08 15:42:41 UTC) #17
noyau (Ping after 24h)
It would be useful to have a eg_test making sure the page loads properly on ...
4 years ago (2016-12-08 15:51:12 UTC) #19
sfiera
On 2016/12/08 15:42:41, Marc Treib wrote: > Ah, and one top-level comment: Why "site tiles"? ...
4 years ago (2016-12-08 16:44:25 UTC) #22
sfiera
https://codereview.chromium.org/2557103004/diff/40001/chrome/browser/ui/webui/site_tiles_internals_ui.cc File chrome/browser/ui/webui/site_tiles_internals_ui.cc (right): https://codereview.chromium.org/2557103004/diff/40001/chrome/browser/ui/webui/site_tiles_internals_ui.cc#newcode9 chrome/browser/ui/webui/site_tiles_internals_ui.cc:9: #include "chrome/browser/browser_process.h" On 2016/12/08 15:41:49, Marc Treib wrote: > ...
4 years ago (2016-12-08 16:44:35 UTC) #23
noyau (Ping after 24h)
On 2016/12/08 16:44:25, sfiera wrote: > On 2016/12/08 15:51:12, noyau wrote: > > It would ...
4 years ago (2016-12-08 16:55:18 UTC) #24
Marc Treib
On 2016/12/08 16:44:25, sfiera wrote: > On 2016/12/08 15:42:41, Marc Treib wrote: > > Ah, ...
4 years ago (2016-12-08 17:25:05 UTC) #25
Marc Treib
btw, is the plan to eventually remove popular-sites-internals? https://codereview.chromium.org/2557103004/diff/40001/chrome/browser/ui/webui/site_tiles_internals_ui.cc File chrome/browser/ui/webui/site_tiles_internals_ui.cc (right): https://codereview.chromium.org/2557103004/diff/40001/chrome/browser/ui/webui/site_tiles_internals_ui.cc#newcode126 chrome/browser/ui/webui/site_tiles_internals_ui.cc:126: web_ui()->CallJavascriptFunctionUnsafe(name, ...
4 years ago (2016-12-08 17:33:22 UTC) #26
sfiera
https://codereview.chromium.org/2557103004/diff/40001/components/ntp_tiles/webui/site_tiles_internals_message_handler.cc File components/ntp_tiles/webui/site_tiles_internals_message_handler.cc (right): https://codereview.chromium.org/2557103004/diff/40001/components/ntp_tiles/webui/site_tiles_internals_message_handler.cc#newcode163 components/ntp_tiles/webui/site_tiles_internals_message_handler.cc:163: value.SetBoolean("popular", false); On 2016/12/08 17:33:22, Marc Treib wrote: > ...
4 years ago (2016-12-08 18:00:48 UTC) #27
Marc Treib
Soo, what about the naming? I'm not opposed to "s/ntp_tiles/site_tiles/g", but IMO consistency > accuracy, ...
4 years ago (2016-12-09 10:52:12 UTC) #28
sfiera
On Fri, Dec 9, 2016 at 11:52 AM, <treib@chromium.org> wrote: > Soo, what about the ...
4 years ago (2016-12-09 11:03:05 UTC) #29
Marc Treib
That really only needs an approval from any components/ owner, everything else can be TBRed. ...
4 years ago (2016-12-09 11:12:12 UTC) #30
sfiera
https://codereview.chromium.org/2557103004/diff/100001/chrome/browser/ui/webui/site_tiles_internals_ui.cc File chrome/browser/ui/webui/site_tiles_internals_ui.cc (right): https://codereview.chromium.org/2557103004/diff/100001/chrome/browser/ui/webui/site_tiles_internals_ui.cc#newcode79 chrome/browser/ui/webui/site_tiles_internals_ui.cc:79: #endif On 2016/12/09 10:52:11, Marc Treib wrote: > I ...
4 years ago (2016-12-09 17:35:28 UTC) #32
Marc Treib
Thanks, looks good now, except for the naming - did we agree on "ntp-tiles" for ...
4 years ago (2016-12-12 09:42:18 UTC) #37
sfiera
Yes, ntp-tiles-internals. Uploaded the rename, about to kick off the rebase. https://codereview.chromium.org/2557103004/diff/120001/chrome/browser/ui/webui/site_tiles_internals_ui.cc File chrome/browser/ui/webui/site_tiles_internals_ui.cc (right): ...
4 years ago (2016-12-12 10:09:50 UTC) #38
Marc Treib
LGTM with some last nits. Thanks! https://codereview.chromium.org/2557103004/diff/140001/components/ntp_tiles/webui/ntp_tiles_internals_message_handler.cc File components/ntp_tiles/webui/ntp_tiles_internals_message_handler.cc (right): https://codereview.chromium.org/2557103004/diff/140001/components/ntp_tiles/webui/ntp_tiles_internals_message_handler.cc#newcode9 components/ntp_tiles/webui/ntp_tiles_internals_message_handler.cc:9: #include "base/files/file_util.h" Not ...
4 years ago (2016-12-12 10:51:22 UTC) #39
noyau (Ping after 24h)
lgtm, but with a comment. https://codereview.chromium.org/2557103004/diff/140001/ios/chrome/browser/ui/webui/ntp_tiles_internals_ui.cc File ios/chrome/browser/ui/webui/ntp_tiles_internals_ui.cc (right): https://codereview.chromium.org/2557103004/diff/140001/ios/chrome/browser/ui/webui/ntp_tiles_internals_ui.cc#newcode61 ios/chrome/browser/ui/webui/ntp_tiles_internals_ui.cc:61: return true; The name ...
4 years ago (2016-12-12 11:47:40 UTC) #40
Marc Treib
https://codereview.chromium.org/2557103004/diff/140001/ios/chrome/browser/ui/webui/ntp_tiles_internals_ui.cc File ios/chrome/browser/ui/webui/ntp_tiles_internals_ui.cc (right): https://codereview.chromium.org/2557103004/diff/140001/ios/chrome/browser/ui/webui/ntp_tiles_internals_ui.cc#newcode61 ios/chrome/browser/ui/webui/ntp_tiles_internals_ui.cc:61: return true; On 2016/12/12 11:47:40, noyau wrote: > The ...
4 years ago (2016-12-12 12:03:26 UTC) #41
sfiera
https://codereview.chromium.org/2557103004/diff/140001/ios/chrome/browser/ui/webui/ntp_tiles_internals_ui.cc File ios/chrome/browser/ui/webui/ntp_tiles_internals_ui.cc (right): https://codereview.chromium.org/2557103004/diff/140001/ios/chrome/browser/ui/webui/ntp_tiles_internals_ui.cc#newcode61 ios/chrome/browser/ui/webui/ntp_tiles_internals_ui.cc:61: return true; On 2016/12/12 11:47:40, noyau wrote: > The ...
4 years ago (2016-12-12 12:15:38 UTC) #42
Marc Treib
https://codereview.chromium.org/2557103004/diff/140001/ios/chrome/browser/ui/webui/ntp_tiles_internals_ui.cc File ios/chrome/browser/ui/webui/ntp_tiles_internals_ui.cc (right): https://codereview.chromium.org/2557103004/diff/140001/ios/chrome/browser/ui/webui/ntp_tiles_internals_ui.cc#newcode61 ios/chrome/browser/ui/webui/ntp_tiles_internals_ui.cc:61: return true; On 2016/12/12 12:15:38, sfiera wrote: > On ...
4 years ago (2016-12-12 12:18:45 UTC) #43
sfiera
https://codereview.chromium.org/2557103004/diff/140001/ios/chrome/browser/ui/webui/ntp_tiles_internals_ui.cc File ios/chrome/browser/ui/webui/ntp_tiles_internals_ui.cc (right): https://codereview.chromium.org/2557103004/diff/140001/ios/chrome/browser/ui/webui/ntp_tiles_internals_ui.cc#newcode61 ios/chrome/browser/ui/webui/ntp_tiles_internals_ui.cc:61: return true; On 2016/12/12 12:18:45, Marc Treib wrote: > ...
4 years ago (2016-12-12 12:29:26 UTC) #44
Marc Treib
https://codereview.chromium.org/2557103004/diff/140001/ios/chrome/browser/ui/webui/ntp_tiles_internals_ui.cc File ios/chrome/browser/ui/webui/ntp_tiles_internals_ui.cc (right): https://codereview.chromium.org/2557103004/diff/140001/ios/chrome/browser/ui/webui/ntp_tiles_internals_ui.cc#newcode61 ios/chrome/browser/ui/webui/ntp_tiles_internals_ui.cc:61: return true; On 2016/12/12 12:29:26, sfiera wrote: > On ...
4 years ago (2016-12-12 12:34:52 UTC) #45
sfiera
+bauerb: for linking this into //chrome/browser/ui/webui/… +sdefresne: for //components/resources/… (and fixing OWNERS there) https://codereview.chromium.org/2557103004/diff/140001/components/ntp_tiles/webui/ntp_tiles_internals_message_handler.cc File ...
4 years ago (2016-12-12 16:08:32 UTC) #47
sdefresne
components/resources/ lgtm
4 years ago (2016-12-12 19:30:11 UTC) #50
sfiera
I realized one tricky thing: according to the definition I gave for DoesSourceExist(), popular sites ...
4 years ago (2016-12-13 13:10:04 UTC) #57
Marc Treib
On 2016/12/13 13:10:04, sfiera wrote: > I realized one tricky thing: according to the definition ...
4 years ago (2016-12-13 13:32:31 UTC) #58
Bernhard Bauer
webui/ LGTM.
4 years ago (2016-12-13 16:53:42 UTC) #61
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/2557103004/240001
4 years ago (2016-12-13 17:24:21 UTC) #66
commit-bot: I haz the power
Committed patchset #12 (id:240001)
4 years ago (2016-12-13 17:30:27 UTC) #69
commit-bot: I haz the power
4 years ago (2016-12-13 17:34:12 UTC) #71
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/876fe79ca447c79d6b81738df6e756716faa9458
Cr-Commit-Position: refs/heads/master@{#438205}

Powered by Google App Engine
This is Rietveld 408576698