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

Issue 2941323002: Delete the right JumpList icons conditional on shell notification (Closed)

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

Description

Delete the right JumpList icons conditional on shell notification This CL decides which JumpList icons to delete based on the results of shell notification. That is, if the shell notification fails or times out, we delete the newly created icons as the old icons are still going to be used by the shell. Previously, we delete old icons before notifying the shell about the update. If the notification fails, the old JumpList is still used but their icons are already gone. In this case, there will be no icons showing up but the background color. By moving the icon deletion step after shell notification and introducing the dependency, this issue is fixed. In addition, this change makes it possible to cancel more updates where shell notification is detected to be slow. In more details, if AddCustomCategory API call in the shell notification process times out, we can now abort this update to avoid calling CommitUpdate which is very likely to be slow as well. This was impossible before this CL. BUG=40407, 716115, 736530 Review-Url: https://codereview.chromium.org/2941323002 Cr-Commit-Position: refs/heads/master@{#483439} Committed: https://chromium.googlesource.com/chromium/src/+/531f38bd194f9d8a0dd98d78a15f82947d742cec

Patch Set 1 #

Total comments: 6

Patch Set 2 : Update members of UpdateResults, use recently_closed_* rather than recent_closed_* #

Total comments: 10

Patch Set 3 : A much easier way of doing this, address comments #

Total comments: 18

Patch Set 4 : Address comments, record timeout info for failed steps in shell notification #

Total comments: 2

Patch Set 5 : Revert timeout related changes #

Total comments: 8

Patch Set 6 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+191 lines, -117 lines) Patch
M chrome/browser/win/jumplist.h View 1 2 3 4 5 3 chunks +54 lines, -32 lines 0 comments Download
M chrome/browser/win/jumplist.cc View 1 2 3 4 5 10 chunks +137 lines, -85 lines 0 comments Download

Messages

Total messages: 93 (79 generated)
chengx
PTAL, thanks! I renamed quite a few methods and variables to make them a bit ...
3 years, 6 months ago (2017-06-20 04:12:59 UTC) #23
chengx
FYI Bruce. I remember once you asked me if it's possible to delete icons after ...
3 years, 6 months ago (2017-06-20 05:33:10 UTC) #24
grt (UTC plus 2)
https://codereview.chromium.org/2941323002/diff/180001/chrome/browser/win/jumplist.cc File chrome/browser/win/jumplist.cc (right): https://codereview.chromium.org/2941323002/diff/180001/chrome/browser/win/jumplist.cc#newcode556 chrome/browser/win/jumplist.cc:556: auto update_results = base::MakeUnique<UpdateResults>(); meta comment: this object does ...
3 years, 6 months ago (2017-06-20 10:29:19 UTC) #25
chengx
I've addressed the comments in the new patch set. PTAL, thanks! https://codereview.chromium.org/2941323002/diff/180001/chrome/browser/win/jumplist.cc File chrome/browser/win/jumplist.cc (right): ...
3 years, 6 months ago (2017-06-20 19:33:59 UTC) #34
grt (UTC plus 2)
https://codereview.chromium.org/2941323002/diff/180001/chrome/browser/win/jumplist.cc File chrome/browser/win/jumplist.cc (right): https://codereview.chromium.org/2941323002/diff/180001/chrome/browser/win/jumplist.cc#newcode556 chrome/browser/win/jumplist.cc:556: auto update_results = base::MakeUnique<UpdateResults>(); On 2017/06/20 19:33:59, chengx wrote: ...
3 years, 6 months ago (2017-06-21 10:57:30 UTC) #42
chengx
Hi Greg, PTAL the new patch set, thanks! Inspired by your comments, I realized there ...
3 years, 6 months ago (2017-06-22 22:45:06 UTC) #62
grt (UTC plus 2)
this is much easier to understand. thanks. https://codereview.chromium.org/2941323002/diff/470001/chrome/browser/win/jumplist.cc File chrome/browser/win/jumplist.cc (right): https://codereview.chromium.org/2941323002/diff/470001/chrome/browser/win/jumplist.cc#newcode568 chrome/browser/win/jumplist.cc:568: most_visited_should_update, recently_closed_should_update, ...
3 years, 6 months ago (2017-06-23 09:36:15 UTC) #65
chengx
PTAL, thanks! https://codereview.chromium.org/2941323002/diff/470001/chrome/browser/win/jumplist.cc File chrome/browser/win/jumplist.cc (right): https://codereview.chromium.org/2941323002/diff/470001/chrome/browser/win/jumplist.cc#newcode568 chrome/browser/win/jumplist.cc:568: most_visited_should_update, recently_closed_should_update, On 2017/06/23 09:36:14, grt (UTC ...
3 years, 6 months ago (2017-06-23 18:52:39 UTC) #69
grt (UTC plus 2)
this looks good, but i wonder about the cl description. doesn't the current code already ...
3 years, 6 months ago (2017-06-24 20:40:28 UTC) #76
chengx
PTAL, thanks! On 2017/06/24 20:40:28, grt (UTC plus 2) wrote: > this looks good, but ...
3 years, 6 months ago (2017-06-25 02:32:09 UTC) #80
grt (UTC plus 2)
lgtm with nits https://codereview.chromium.org/2941323002/diff/590001/chrome/browser/win/jumplist.cc File chrome/browser/win/jumplist.cc (right): https://codereview.chromium.org/2941323002/diff/590001/chrome/browser/win/jumplist.cc#newcode79 chrome/browser/win/jumplist.cc:79: // The maximum allowed time for ...
3 years, 5 months ago (2017-06-27 07:45:30 UTC) #82
chengx
I've addressed all the comments in the new patch set. Thanks! https://codereview.chromium.org/2941323002/diff/590001/chrome/browser/win/jumplist.cc File chrome/browser/win/jumplist.cc (right): ...
3 years, 5 months ago (2017-06-29 17:46:05 UTC) #83
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/2941323002/610001
3 years, 5 months ago (2017-06-29 18:39:44 UTC) #90
commit-bot: I haz the power
3 years, 5 months ago (2017-06-29 18:44:40 UTC) #93
Message was sent while issue was closed.
Committed patchset #6 (id:610001) as
https://chromium.googlesource.com/chromium/src/+/531f38bd194f9d8a0dd98d78a15f...

Powered by Google App Engine
This is Rietveld 408576698