DNR: Handle extension uninstallation in asynchronous tasks.
In certain specific and rare edge cases, we might end up setting ruleset prefs for an uninstalled extension. This can happen in: - RulesMonitorService::OnRulesetLoaded: This is dispatched when the extension rulesets are loaded. We reset the ruleset checksums if the extension was re-indexed due to a schema change. - RulesMonitorService::OnDynamicRulesUpdated: This is dispatched when the dynamic rules for an extension are updated on disk. Return early in both these cases to ensure we don't incorrectly modify extension prefs for an uninstalled extension. BUG=1067441 Change-Id: Ib2d1a94265ab73871b8ae791481fe0ec25234d60 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2131222 Commit-Queue: Karan Bhatia <karandeepb@chromium.org> Reviewed-by:Devlin <rdevlin.cronin@chromium.org> Cr-Commit-Position: refs/heads/master@{#756410}
Showing
Please register or sign in to comment