• Karandeep Bhatia's avatar
    DNR: Handle extension uninstallation in asynchronous tasks. · a61895d2
    Karandeep Bhatia authored
    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: default avatarDevlin <rdevlin.cronin@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#756410}
    a61895d2
utils.cc 10 KB