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

Issue 2786833003: NTP thumbnails: Always pass singular "thumbnailUrl" to the iframe (Closed)

Created:
3 years, 8 months ago by Marc Treib
Modified:
3 years, 8 months ago
Reviewers:
sfiera
CC:
chromium-reviews, extensions-reviews_chromium.org, skanuj+watch_chromium.org, melevin+watch_chromium.org, donnd+watch_chromium.org, jfweitz+watch_chromium.org, David Black, arv+watch_chromium.org, samarth+watch_chromium.org, chromium-apps-reviews_chromium.org, kmadhusu+watch_chromium.org, Jered, mastiz
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

NTP thumbnails: Always pass singular "thumbnailUrl" to the iframe rather than the plural "thumbnailUrls". This allows us to get rid of a whole bunch of ugly JS code. The remote NTP has passed "thumbnailUrl" (with a "?fb=" param for the remote fallback thumbnail) for ML suggestions for a long time, but TopSites suggestions used "thumbnailUrls" (but with only ever a single value in the array). With NTPTilesInInstantService enabled, before this CL all suggestions used the plural version, but never with more than two entries. Now it's always the singular version, with an "?fb=" param if appropriate. I've checked that local NTP, remote NTP, and third-party NTPs still work. BUG=703165 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2786833003 Cr-Commit-Position: refs/heads/master@{#461401} Committed: https://chromium.googlesource.com/chromium/src/+/92005c86d523ba4d37d4c2ff60eb05b385bb5c38

Patch Set 1 #

Patch Set 2 : . #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -90 lines) Patch
M chrome/browser/resources/local_ntp/most_visited_single.js View 2 chunks +1 line, -70 lines 0 comments Download
M chrome/browser/resources/local_ntp/most_visited_thumbnail.js View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/renderer/searchbox/searchbox_extension.cc View 1 2 chunks +13 lines, -18 lines 4 comments Download

Messages

Total messages: 23 (13 generated)
Marc Treib
The NTP just keeps on giving... I ran into this inconsistency while trying to (re-)add ...
3 years, 8 months ago (2017-03-30 13:28:55 UTC) #6
sfiera
Have you checked that the histograms still work right? https://codereview.chromium.org/2786833003/diff/20001/chrome/renderer/searchbox/searchbox_extension.cc File chrome/renderer/searchbox/searchbox_extension.cc (right): https://codereview.chromium.org/2786833003/diff/20001/chrome/renderer/searchbox/searchbox_extension.cc#newcode114 chrome/renderer/searchbox/searchbox_extension.cc:114: ...
3 years, 8 months ago (2017-03-30 13:40:58 UTC) #7
Marc Treib
Good call - no, I haven't checked the histograms yet. Will do and report back! ...
3 years, 8 months ago (2017-03-30 13:51:03 UTC) #8
sfiera
https://codereview.chromium.org/2786833003/diff/20001/chrome/renderer/searchbox/searchbox_extension.cc File chrome/renderer/searchbox/searchbox_extension.cc (right): https://codereview.chromium.org/2786833003/diff/20001/chrome/renderer/searchbox/searchbox_extension.cc#newcode114 chrome/renderer/searchbox/searchbox_extension.cc:114: base::StringPrintf("chrome-search://thumb2/%s?fb=%s", On 2017/03/30 13:51:03, Marc Treib wrote: > On ...
3 years, 8 months ago (2017-03-30 13:55:20 UTC) #9
Marc Treib
https://codereview.chromium.org/2786833003/diff/20001/chrome/renderer/searchbox/searchbox_extension.cc File chrome/renderer/searchbox/searchbox_extension.cc (right): https://codereview.chromium.org/2786833003/diff/20001/chrome/renderer/searchbox/searchbox_extension.cc#newcode114 chrome/renderer/searchbox/searchbox_extension.cc:114: base::StringPrintf("chrome-search://thumb2/%s?fb=%s", On 2017/03/30 13:55:19, sfiera wrote: > On 2017/03/30 ...
3 years, 8 months ago (2017-03-30 14:04:26 UTC) #12
Marc Treib
Verified: NewTabPage.SuggestionsImpression.* still work.
3 years, 8 months ago (2017-03-30 15:15:28 UTC) #13
Marc Treib
Ping!
3 years, 8 months ago (2017-04-03 08:48:35 UTC) #14
sfiera
Oh, I thought I said LGTM earlier.
3 years, 8 months ago (2017-04-03 09:17:11 UTC) #15
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/2786833003/20001
3 years, 8 months ago (2017-04-03 10:06:26 UTC) #20
commit-bot: I haz the power
3 years, 8 months ago (2017-04-03 10:26:22 UTC) #23
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/92005c86d523ba4d37d4c2ff60eb...

Powered by Google App Engine
This is Rietveld 408576698