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

Issue 2533873003: Add throttling to corrupt policy extensions reinstall (Closed)

Created:
4 years ago by asargent_no_longer_on_chrome
Modified:
4 years ago
Reviewers:
Devlin
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add throttling to corrupt policy extensions reinstall For crbug.com/447040 (https://codereview.chromium.org/2299203004) we made it so that enterprise policy force installed extensions would get automatically reinstalled when we detected corruption. However, we didn't add in any throttling, which was a bad idea because we turned out to have a bug (crbug.com/643814) where particular extensions were always incorrectly detected as corrupt right after install. So at least one enterprise with one of these extensions in their force install list ended up having chrome spin in an loop redownloading/reinstalling one of the affected extensions, eating up tons of bandwidth and disk space. This CL adds in throttling with an exponentially backed off delay on each reinstall attempt, up to a maximum of 30 minutes. The delay value is only maintained in memory during the course of a single run of chrome and resets after 6 hours (or on browser restart), but should be sufficient to drastically reduce the problem reported for this bug. BUG=661738 Committed: https://crrev.com/6014bdfa1f211946627a7085c87fe922e1581fc5 Cr-Commit-Position: refs/heads/master@{#435430}

Patch Set 1 : ready for review #

Total comments: 10

Patch Set 2 : review feedback fixes #

Patch Set 3 : merge latest origin/master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+141 lines, -2 lines) Patch
M chrome/browser/extensions/chrome_content_verifier_delegate.h View 1 3 chunks +20 lines, -0 lines 0 comments Download
M chrome/browser/extensions/chrome_content_verifier_delegate.cc View 1 5 chunks +57 lines, -2 lines 0 comments Download
M chrome/browser/extensions/content_verifier_browsertest.cc View 1 2 3 chunks +64 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (19 generated)
asargent_no_longer_on_chrome
4 years ago (2016-11-29 18:39:17 UTC) #8
Devlin
lgtm https://codereview.chromium.org/2533873003/diff/20001/chrome/browser/extensions/chrome_content_verifier_delegate.cc File chrome/browser/extensions/chrome_content_verifier_delegate.cc (right): https://codereview.chromium.org/2533873003/diff/20001/chrome/browser/extensions/chrome_content_verifier_delegate.cc#newcode71 chrome/browser/extensions/chrome_content_verifier_delegate.cc:71: base::LazyInstance<base::Callback<void(base::TimeDelta delay)>> Any need for this to a ...
4 years ago (2016-11-29 22:31:25 UTC) #12
asargent_no_longer_on_chrome
https://codereview.chromium.org/2533873003/diff/20001/chrome/browser/extensions/chrome_content_verifier_delegate.cc File chrome/browser/extensions/chrome_content_verifier_delegate.cc (right): https://codereview.chromium.org/2533873003/diff/20001/chrome/browser/extensions/chrome_content_verifier_delegate.cc#newcode71 chrome/browser/extensions/chrome_content_verifier_delegate.cc:71: base::LazyInstance<base::Callback<void(base::TimeDelta delay)>> On 2016/11/29 22:31:24, Devlin wrote: > Any ...
4 years ago (2016-11-30 00:11:49 UTC) #13
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/2533873003/40001
4 years ago (2016-11-30 00:12:52 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: blimp_linux_dbg on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) cast_shell_linux on ...
4 years ago (2016-11-30 02:15:04 UTC) #18
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/2533873003/40001
4 years ago (2016-11-30 18:33:42 UTC) #20
commit-bot: I haz the power
Failed to apply patch for chrome/browser/extensions/content_verifier_browsertest.cc: While running git apply --index -p1; error: patch failed: ...
4 years ago (2016-11-30 19:21:16 UTC) #22
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/2533873003/60001
4 years ago (2016-11-30 21:03:33 UTC) #25
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years ago (2016-11-30 21:50:56 UTC) #27
commit-bot: I haz the power
4 years ago (2016-11-30 21:53:16 UTC) #29
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/6014bdfa1f211946627a7085c87fe922e1581fc5
Cr-Commit-Position: refs/heads/master@{#435430}

Powered by Google App Engine
This is Rietveld 408576698