Chromium Code Reviews
DescriptionRetry reinstallation of corrupted policy extensions.
Introduce a new class PolicyExtensionReinstaller, that contains the
logic for retrying with a backoff.
Note that the backoff entries were per-extension before, I'm making
it global. Two reasons:
1) The per entry backoff was added primarily to stop
an extension from being continually reinstalling if the verification
for that extension kept failing. With the global backoff, it should
still hold. (crbug.com/661738)
2) Even if the entry is backoff, we call
ExtensionService::CheckForExternalUpdates() in the end, which applies
to *all* policy extensions, not just the one that corrupted.
BUG=703904
Test=Turn off network, corrupt a policy installed extension (easy to
modify a file/background script in extension's installation directory).
Turn the network back on, after a while extension should be reinstalled.
Review-Url: https://codereview.chromium.org/2790823004
Cr-Commit-Position: refs/heads/master@{#461748}
Committed: https://chromium.googlesource.com/chromium/src/+/77214d3c726115ef0205026fd78a70a521df0d6b
Patch Set 1 #Patch Set 2 : fix compile #
Total comments: 18
Patch Set 3 : sync #Patch Set 4 : address comments #
Total comments: 4
Patch Set 5 : address comments #Messages
Total messages: 25 (18 generated)
|