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

Issue 2084953003: Fix clicks on NTP tiles not contributing to Most Visited tiles (Closed)

Created:
4 years, 6 months ago by mastiz
Modified:
4 years, 5 months ago
CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix clicks on NTP tiles not contributing to Most Visited tiles The code that computes the client-side list of Most Visited pages, surfaced in the NTP, considers navigations of types TYPED or AUTO_BOOKMARK (i.e. excludes LINK): see https://cs.chromium.org/chromium/src/components/history/core/browser/history_backend.cc?l=339 The goal of this reinforcement is that a click on a tile increases the likelihood of that page being listed the next time an NTP is opened. This works fine for Android because clicks on NTP tiles produce AUTO_BOOKMARK transitions. However, for desktop, https://codereview.chromium.org/1908363002/ (M53) caused a regression because it inadvertently changed the transition type from AUTO_BOOKMARK to LINK (for TopSites tiles only, i.e. computed locally). This means such clicks don't influence the ranking of tiles, and therefore TYPED URLs dominate the list. Note that the issue mostly affects non-signed-in users, since signed-in users fetch a list from a remote service. Manually tested: Google remote NTP - transition type changed from LINK to AUTO_BOOKMARK. BUG=620296 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/a77db699719e4ecb07ce3a37fe4698ae92372111 Cr-Commit-Position: refs/heads/master@{#403132}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Moved logic to ContentBrowserClient. #

Total comments: 6

Patch Set 3 : Addressed comments. #

Total comments: 10

Patch Set 4 : Addressed nit. #

Total comments: 3

Patch Set 5 : Added TODO. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -0 lines) Patch
M chrome/browser/chrome_content_browser_client.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 1 chunk +22 lines, -0 lines 0 comments Download
M content/browser/frame_host/navigator_impl.cc View 1 1 chunk +3 lines, -0 lines 0 comments Download
M content/public/browser/content_browser_client.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (10 generated)
mastiz
4 years, 6 months ago (2016-06-21 14:22:20 UTC) #3
Marc Treib
Note that the desktop regression only affected TopSites tiles - MostLikely tiles always were LINK. ...
4 years, 6 months ago (2016-06-22 12:36:34 UTC) #4
mastiz
creis@chromium.org: Please take a preliminary look. We need this fix in some form to avoid ...
4 years, 6 months ago (2016-06-23 20:05:07 UTC) #7
Charlie Reis
https://codereview.chromium.org/2084953003/diff/1/content/browser/frame_host/navigator_impl.cc File content/browser/frame_host/navigator_impl.cc (right): https://codereview.chromium.org/2084953003/diff/1/content/browser/frame_host/navigator_impl.cc#newcode708 content/browser/frame_host/navigator_impl.cc:708: // link clicks (e.g., so the new tab page ...
4 years, 6 months ago (2016-06-23 22:48:15 UTC) #8
Marc Treib
https://codereview.chromium.org/2084953003/diff/1/content/browser/frame_host/navigator_impl.cc File content/browser/frame_host/navigator_impl.cc (right): https://codereview.chromium.org/2084953003/diff/1/content/browser/frame_host/navigator_impl.cc#newcode708 content/browser/frame_host/navigator_impl.cc:708: // link clicks (e.g., so the new tab page ...
4 years, 6 months ago (2016-06-24 10:21:42 UTC) #9
mastiz
On 2016/06/24 10:21:42, Marc Treib wrote: > https://codereview.chromium.org/2084953003/diff/1/content/browser/frame_host/navigator_impl.cc > File content/browser/frame_host/navigator_impl.cc (right): > > https://codereview.chromium.org/2084953003/diff/1/content/browser/frame_host/navigator_impl.cc#newcode708 ...
4 years, 5 months ago (2016-06-27 12:51:40 UTC) #10
Marc Treib
Mostly looks good! https://codereview.chromium.org/2084953003/diff/20001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/2084953003/diff/20001/chrome/browser/chrome_content_browser_client.cc#newcode1164 chrome/browser/chrome_content_browser_client.cc:1164: chrome::kChromeSearchRemoteNtpHost && Also for the local ...
4 years, 5 months ago (2016-06-27 13:08:15 UTC) #11
mastiz
PTAL. https://codereview.chromium.org/2084953003/diff/20001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/2084953003/diff/20001/chrome/browser/chrome_content_browser_client.cc#newcode1164 chrome/browser/chrome_content_browser_client.cc:1164: chrome::kChromeSearchRemoteNtpHost && On 2016/06/27 13:08:15, Marc Treib wrote: ...
4 years, 5 months ago (2016-06-27 13:50:53 UTC) #12
Marc Treib
LGTM, thanks!
4 years, 5 months ago (2016-06-27 14:02:23 UTC) #13
mastiz
creis@: PTAL, thx.
4 years, 5 months ago (2016-06-27 14:55:33 UTC) #14
Charlie Reis
Looking better, thanks! https://codereview.chromium.org/2084953003/diff/40001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/2084953003/diff/40001/chrome/browser/chrome_content_browser_client.cc#newcode1162 chrome/browser/chrome_content_browser_client.cc:1162: site_instance->GetSiteURL().SchemeIs(chrome::kChromeSearchScheme) && There must be an ...
4 years, 5 months ago (2016-06-28 00:52:05 UTC) #15
mastiz
PTAL. https://codereview.chromium.org/2084953003/diff/40001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/2084953003/diff/40001/chrome/browser/chrome_content_browser_client.cc#newcode1162 chrome/browser/chrome_content_browser_client.cc:1162: site_instance->GetSiteURL().SchemeIs(chrome::kChromeSearchScheme) && On 2016/06/28 00:52:05, Charlie Reis wrote: ...
4 years, 5 months ago (2016-06-28 08:20:31 UTC) #16
Marc Treib
https://codereview.chromium.org/2084953003/diff/40001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/2084953003/diff/40001/chrome/browser/chrome_content_browser_client.cc#newcode1162 chrome/browser/chrome_content_browser_client.cc:1162: site_instance->GetSiteURL().SchemeIs(chrome::kChromeSearchScheme) && On 2016/06/28 08:20:31, mastiz wrote: > On ...
4 years, 5 months ago (2016-06-28 08:57:07 UTC) #17
Charlie Reis
Ok. I'm not thrilled about proceeding as is, but I'm ok with it as long ...
4 years, 5 months ago (2016-06-28 17:57:35 UTC) #18
mastiz
On 2016/06/28 17:57:35, Charlie Reis wrote: > Ok. I'm not thrilled about proceeding as is, ...
4 years, 5 months ago (2016-06-29 14:19:36 UTC) #19
mastiz
https://codereview.chromium.org/2084953003/diff/40001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/2084953003/diff/40001/chrome/browser/chrome_content_browser_client.cc#newcode1162 chrome/browser/chrome_content_browser_client.cc:1162: site_instance->GetSiteURL().SchemeIs(chrome::kChromeSearchScheme) && On 2016/06/28 17:57:35, Charlie Reis wrote: > ...
4 years, 5 months ago (2016-06-29 14:20:14 UTC) #20
Charlie Reis
On 2016/06/29 14:19:36, mastiz wrote: > On 2016/06/28 17:57:35, Charlie Reis wrote: > > Ok. ...
4 years, 5 months ago (2016-06-29 19:27:00 UTC) #21
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/2084953003/80001
4 years, 5 months ago (2016-06-30 07:56:09 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/194644)
4 years, 5 months ago (2016-06-30 09:06:37 UTC) #26
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/2084953003/80001
4 years, 5 months ago (2016-06-30 09:24:14 UTC) #28
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 5 months ago (2016-06-30 09:48:59 UTC) #30
commit-bot: I haz the power
4 years, 5 months ago (2016-06-30 09:51:59 UTC) #32
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/a77db699719e4ecb07ce3a37fe4698ae92372111
Cr-Commit-Position: refs/heads/master@{#403132}

Powered by Google App Engine
This is Rietveld 408576698