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

Issue 2831433003: Time out jumplist update for very slow or busy OS (Closed)

Created:
3 years, 8 months ago by chengx
Modified:
3 years, 7 months ago
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Time out jumplist update for very slow or busy OS Notifying OS about the jumplist update consists of 4 steps in order: BeginUpdate, AddCustomCategory, AddTasks and CommitUpdate, all of which shouldn't take long. However, UMA data shows that each step can take up to tens of seconds for some Chrome users. Among the 4 steps, AddTasks is in the best condition, while CommitUpdate is in the worst condition. Since they are mostly Windows API calls, we can assume this is due to user machines (which can be very slow or busy) with a pretty high confidence, and also there's not much we can improve on Chrome's side. For these situations, we should stop jumplist update to avoid making things worse. Code-wise, we stop the update if BeginUpdate takes more than 500 ms which is the cutoff for 99.5% Canary JumpList updates, as the following steps (old icons' deletion, new icons' creation, AddCustomCategory, CommitUpdate, etc) are very likely to take a long time too. BUG=40407, 179576 Review-Url: https://codereview.chromium.org/2831433003 Cr-Commit-Position: refs/heads/master@{#467009} Committed: https://chromium.googlesource.com/chromium/src/+/250b02089b81116d27bb3732ada0f8e87de02932

Patch Set 1 #

Patch Set 2 : Merge branch 'master' of https://chromium.googlesource.com/chromium/src into timeoutjumplistupdater… #

Total comments: 9

Patch Set 3 : Address comments #

Patch Set 4 : Add myself to be an owner of jumplist* files #

Total comments: 6

Patch Set 5 : Mark retired metrics obsolete in histograms.xml #

Total comments: 10

Patch Set 6 : Address comments #

Total comments: 6

Patch Set 7 : Remove myself from being an owner and remove Windows version check #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -39 lines) Patch
M chrome/browser/win/jumplist.cc View 1 2 3 4 5 6 chunks +37 lines, -34 lines 0 comments Download
M chrome/browser/win/jumplist_updater.cc View 1 2 3 4 5 6 2 chunks +2 lines, -5 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 62 (44 generated)
chengx
PTAL~
3 years, 8 months ago (2017-04-19 08:13:58 UTC) #9
grt (UTC plus 2)
I'm not seeing the problem. Looking at stats for M60 over a 7d aggregation, the ...
3 years, 8 months ago (2017-04-19 13:39:43 UTC) #10
chengx
On 2017/04/19 13:39:43, grt (UTC plus 1) wrote: > I'm not seeing the problem. Looking ...
3 years, 8 months ago (2017-04-19 18:10:27 UTC) #11
grt (UTC plus 2)
Okay, the rationale seems sane to me. I have a few small nits and a ...
3 years, 8 months ago (2017-04-20 12:48:53 UTC) #21
chengx
PTAL~ Adding isherman@ for histogram.xml https://codereview.chromium.org/2831433003/diff/20001/chrome/browser/win/jumplist.cc File chrome/browser/win/jumplist.cc (right): https://codereview.chromium.org/2831433003/diff/20001/chrome/browser/win/jumplist.cc#newcode71 chrome/browser/win/jumplist.cc:71: const int kTimeOutForJumplistUpdateInMS = ...
3 years, 8 months ago (2017-04-20 21:01:37 UTC) #28
Ilya Sherman
https://codereview.chromium.org/2831433003/diff/60001/chrome/browser/win/OWNERS File chrome/browser/win/OWNERS (right): https://codereview.chromium.org/2831433003/diff/60001/chrome/browser/win/OWNERS#newcode12 chrome/browser/win/OWNERS:12: per-file jumplist*=chengx@chromium.org Would it make sense to create a ...
3 years, 8 months ago (2017-04-20 21:24:24 UTC) #33
chengx
Hi Ilya, PTAL~ https://codereview.chromium.org/2831433003/diff/60001/chrome/browser/win/OWNERS File chrome/browser/win/OWNERS (right): https://codereview.chromium.org/2831433003/diff/60001/chrome/browser/win/OWNERS#newcode12 chrome/browser/win/OWNERS:12: per-file jumplist*=chengx@chromium.org On 2017/04/20 21:24:24, Ilya ...
3 years, 8 months ago (2017-04-20 21:49:04 UTC) #36
Ilya Sherman
histograms.xml lgtm
3 years, 8 months ago (2017-04-20 22:16:09 UTC) #37
grt (UTC plus 2)
https://codereview.chromium.org/2831433003/diff/20001/chrome/browser/win/jumplist.cc File chrome/browser/win/jumplist.cc (right): https://codereview.chromium.org/2831433003/diff/20001/chrome/browser/win/jumplist.cc#newcode259 chrome/browser/win/jumplist.cc:259: return false; On 2017/04/20 21:01:36, chengx wrote: > On ...
3 years, 8 months ago (2017-04-21 10:11:25 UTC) #40
chengx
PTAL~ https://codereview.chromium.org/2831433003/diff/80001/chrome/browser/win/jumplist.cc File chrome/browser/win/jumplist.cc (right): https://codereview.chromium.org/2831433003/diff/80001/chrome/browser/win/jumplist.cc#newcode68 chrome/browser/win/jumplist.cc:68: constexpr base::TimeDelta kDelayForJumplistUpdateInMS = On 2017/04/21 10:11:25, grt ...
3 years, 8 months ago (2017-04-21 18:51:20 UTC) #41
grt (UTC plus 2)
https://codereview.chromium.org/2831433003/diff/100001/chrome/browser/win/OWNERS File chrome/browser/win/OWNERS (right): https://codereview.chromium.org/2831433003/diff/100001/chrome/browser/win/OWNERS#newcode12 chrome/browser/win/OWNERS:12: per-file jumplist*=chengx@chromium.org While I am very excited about the ...
3 years, 8 months ago (2017-04-24 09:15:07 UTC) #42
chengx
PTAL~ https://codereview.chromium.org/2831433003/diff/100001/chrome/browser/win/OWNERS File chrome/browser/win/OWNERS (right): https://codereview.chromium.org/2831433003/diff/100001/chrome/browser/win/OWNERS#newcode12 chrome/browser/win/OWNERS:12: per-file jumplist*=chengx@chromium.org On 2017/04/24 09:15:07, grt (UTC plus ...
3 years, 8 months ago (2017-04-24 17:24:41 UTC) #45
Ilya Sherman
https://codereview.chromium.org/2831433003/diff/100001/chrome/browser/win/OWNERS File chrome/browser/win/OWNERS (right): https://codereview.chromium.org/2831433003/diff/100001/chrome/browser/win/OWNERS#newcode12 chrome/browser/win/OWNERS:12: per-file jumplist*=chengx@chromium.org On 2017/04/24 17:24:40, chengx wrote: > On ...
3 years, 8 months ago (2017-04-24 18:56:05 UTC) #48
chengx
https://codereview.chromium.org/2831433003/diff/100001/chrome/browser/win/OWNERS File chrome/browser/win/OWNERS (right): https://codereview.chromium.org/2831433003/diff/100001/chrome/browser/win/OWNERS#newcode12 chrome/browser/win/OWNERS:12: per-file jumplist*=chengx@chromium.org On 2017/04/24 18:56:05, Ilya Sherman wrote: > ...
3 years, 8 months ago (2017-04-24 19:11:39 UTC) #49
grt (UTC plus 2)
On 2017/04/24 19:11:39, chengx wrote: > https://codereview.chromium.org/2831433003/diff/100001/chrome/browser/win/OWNERS > File chrome/browser/win/OWNERS (right): > > https://codereview.chromium.org/2831433003/diff/100001/chrome/browser/win/OWNERS#newcode12 > ...
3 years, 8 months ago (2017-04-25 07:09:47 UTC) #50
grt (UTC plus 2)
lgtm
3 years, 8 months ago (2017-04-25 07:10:48 UTC) #51
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/2831433003/120001
3 years, 8 months ago (2017-04-25 16:17:27 UTC) #54
commit-bot: I haz the power
3 years, 8 months ago (2017-04-25 16:23:15 UTC) #57
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/250b02089b81116d27bb3732ada0...

Powered by Google App Engine
This is Rietveld 408576698