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

Issue 2896233003: Cancel the JumpList update if top 5 most visited URLs are unchanged (Closed)

Created:
3 years, 7 months ago by chengx
Modified:
3 years, 6 months ago
Reviewers:
grt (UTC plus 2)
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Cancel the JumpList update if top 5 most visited URLs are unchanged Previously, if TopSites service detects any changes in the top 24 most visited URLs, a JumpList update is scheduled. However, since only the top 5 URLs are displayed in JumpList, updates caused by the changes outside of the top 5 URLs are wasted. This CL trims out that waste. BUG=40407, 179576, 715902, 717236, 498987 Review-Url: https://codereview.chromium.org/2896233003 Cr-Commit-Position: refs/heads/master@{#476017} Committed: https://chromium.googlesource.com/chromium/src/+/61e622b8b398999d4884231999375245c07dad01

Patch Set 1 #

Patch Set 2 : Fix signed/unsigned int comparison build error #

Total comments: 6

Patch Set 3 : Address comments #

Total comments: 2

Patch Set 4 : Add unittest #

Total comments: 26

Patch Set 5 : Address comments #

Total comments: 8

Patch Set 6 : Git pull #

Patch Set 7 : Fix nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+129 lines, -2 lines) Patch
M chrome/browser/BUILD.gn View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/win/jumplist.cc View 1 2 3 4 5 3 chunks +10 lines, -1 line 0 comments Download
M chrome/browser/win/jumplist_file_util.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
A chrome/browser/win/jumplist_update_util.h View 1 2 3 4 1 chunk +17 lines, -0 lines 0 comments Download
A chrome/browser/win/jumplist_update_util.cc View 1 2 3 4 1 chunk +26 lines, -0 lines 0 comments Download
A chrome/browser/win/jumplist_update_util_unittest.cc View 1 2 3 4 5 6 1 chunk +72 lines, -0 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 90 (79 generated)
chengx
PTAL, thanks!
3 years, 7 months ago (2017-05-24 03:36:37 UTC) #32
grt (UTC plus 2)
https://codereview.chromium.org/2896233003/diff/100001/chrome/browser/win/jumplist.cc File chrome/browser/win/jumplist.cc (right): https://codereview.chromium.org/2896233003/diff/100001/chrome/browser/win/jumplist.cc#newcode296 chrome/browser/win/jumplist.cc:296: bool need_update = false; i think it makes sense ...
3 years, 7 months ago (2017-05-24 07:22:12 UTC) #33
chengx
PTAL, thanks~ https://codereview.chromium.org/2896233003/diff/100001/chrome/browser/win/jumplist.cc File chrome/browser/win/jumplist.cc (right): https://codereview.chromium.org/2896233003/diff/100001/chrome/browser/win/jumplist.cc#newcode296 chrome/browser/win/jumplist.cc:296: bool need_update = false; On 2017/05/24 07:22:12, ...
3 years, 7 months ago (2017-05-24 23:44:14 UTC) #47
grt (UTC plus 2)
not lgtm. i understand that making unit tests for the entire jumplist machine is challenging. ...
3 years, 6 months ago (2017-05-29 07:14:44 UTC) #48
chengx
I was naively thinking I need to instantiate the JumpList class and construct many things ...
3 years, 6 months ago (2017-05-30 02:56:44 UTC) #54
grt (UTC plus 2)
great! https://codereview.chromium.org/2896233003/diff/200001/chrome/browser/win/jumplist.cc File chrome/browser/win/jumplist.cc (right): https://codereview.chromium.org/2896233003/diff/200001/chrome/browser/win/jumplist.cc#newcode300 chrome/browser/win/jumplist.cc:300: kMostVisitedItems)) nit: add braces for multi-line conditional https://codereview.chromium.org/2896233003/diff/200001/chrome/browser/win/jumplist_update_util.cc ...
3 years, 6 months ago (2017-05-30 08:51:42 UTC) #60
chengx
I've addressed the comments in the new patch set. PTAL, thanks! https://codereview.chromium.org/2896233003/diff/200001/chrome/browser/win/jumplist.cc File chrome/browser/win/jumplist.cc (right): ...
3 years, 6 months ago (2017-05-30 19:37:03 UTC) #63
grt (UTC plus 2)
lgtm with a few nits. https://codereview.chromium.org/2896233003/diff/220001/chrome/browser/win/jumplist.h File chrome/browser/win/jumplist.h (left): https://codereview.chromium.org/2896233003/diff/220001/chrome/browser/win/jumplist.h#oldcode1 chrome/browser/win/jumplist.h:1: // Copyright (c) 2012 ...
3 years, 6 months ago (2017-05-31 06:59:53 UTC) #75
chengx
I've addressed all the comments in the new patch set. Thanks! https://codereview.chromium.org/2896233003/diff/220001/chrome/browser/win/jumplist.h File chrome/browser/win/jumplist.h (left): ...
3 years, 6 months ago (2017-05-31 20:46:23 UTC) #84
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/2896233003/260001
3 years, 6 months ago (2017-05-31 20:47:35 UTC) #87
commit-bot: I haz the power
3 years, 6 months ago (2017-05-31 20:59:41 UTC) #90
Message was sent while issue was closed.
Committed patchset #7 (id:260001) as
https://chromium.googlesource.com/chromium/src/+/61e622b8b398999d488423199937...

Powered by Google App Engine
This is Rietveld 408576698