DescriptionRulesRegistryWithCache::ProcessChangedRules postponed
The main change here is that ProcessChangedRules (includes converting the rules
and writing them to disk) is now postponed to when the rules registry becomes
ready. After start-up, this will just mean that ProcessChangedRules will be
added to the message loop queue.
A minor change is a new way to manage ProcessChangedRules tasks:
If there is not the UI part (which does the writing), ProcessChangedRules tasks
are not ever posted.
If there is the UI part, then at any time at most one ProcessChangedRules task
is ever scheduled. This avoids unnecessary work duplication.
BUG=236368
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=203993
Patch Set 1 #Patch Set 2 : Rebased #Patch Set 3 : Detach the WeakPtrFactory after init even if profile_ is NULL #Patch Set 4 : Do not post tasks for the UI part being ready if there is none #Patch Set 5 : Rebased #
Total comments: 1
Patch Set 6 : Type description for ProcessChangedRulesState moved to the enum's def #
Messages
Total messages: 11 (0 generated)
|