DescriptionRate limit programmatic update checks for extensions (reland)
Previously extensions could call the runtime.requestUpdateCheck method
as often as every 5 seconds. This CL introduces a more restrictive
policy of around one extra check per autoupdate period, and changes the
implementation location of the rate limiting from within the
ExtensionUpdater code itself to the ChromeRuntimeAPIDelegate, and makes
it more flexible by using net::BackoffEntry.
This is a reland of https://codereview.chromium.org/1887253002, with
the removal of a static initializer.
BUG=599310
Committed: https://crrev.com/d50b18c369e5caf46c15c579ccbb28d7dcf84c2c
Cr-Commit-Position: refs/heads/master@{#388654}
Patch Set 1 : Same as original #Patch Set 2 : switch to LazyInstance for backoff policy #
Total comments: 2
Patch Set 3 : have Get() just return the net::BackoffEntry::Policy directly #Messages
Total messages: 14 (6 generated)
|