Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(718)

Issue 15911005: RulesRegistryWithCache::ProcessChangedRules postponed (Closed)

Created:
7 years, 7 months ago by vabr (Chromium)
Modified:
7 years, 6 months ago
Reviewers:
battre
CC:
chromium-reviews, Aaron Boodman, chromium-apps-reviews_chromium.org
Visibility:
Public.

Description

RulesRegistryWithCache::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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -5 lines) Patch
M chrome/browser/extensions/api/declarative/rules_registry_with_cache.h View 1 2 3 4 5 2 chunks +15 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/declarative/rules_registry_with_cache.cc View 1 2 3 4 8 chunks +22 lines, -5 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
vabr (Chromium)
Hi Dominic, Please review this fix to my recent change. The only significant change is ...
7 years, 7 months ago (2013-05-27 09:03:30 UTC) #1
vabr (Chromium)
Note: the error was caught on ChromeOs Debug buildbots. I don't think there are CrOS ...
7 years, 7 months ago (2013-05-27 09:07:26 UTC) #2
vabr (Chromium)
Oh, so now the ChromeOS trybot starts to fail. I'll need to look into it ...
7 years, 7 months ago (2013-05-27 10:20:05 UTC) #3
vabr (Chromium)
Quick update: This CL is gated on https://codereview.chromium.org/15688010/ and https://codereview.chromium.org/15769004/. In particular it is still ...
7 years, 6 months ago (2013-05-28 16:08:08 UTC) #4
vabr (Chromium)
On 2013/05/28 16:08:08, vabr (Chromium) wrote: > Quick update: > This CL is gated on ...
7 years, 6 months ago (2013-06-04 07:40:53 UTC) #5
battre
Can you update the CL description to what this CL actually does? I think the ...
7 years, 6 months ago (2013-06-04 08:22:34 UTC) #6
vabr (Chromium)
Hi Dominic, Thanks, I updated the CL description and addressed your comment. Please continue with ...
7 years, 6 months ago (2013-06-04 09:04:27 UTC) #7
battre
I think you should delete the last two paragraphs in the CL description. It is ...
7 years, 6 months ago (2013-06-04 09:35:40 UTC) #8
vabr (Chromium)
Thanks, Dominic. I removed the patch set descriptions, and the links to the older CLs ...
7 years, 6 months ago (2013-06-04 09:38:44 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vabr@chromium.org/15911005/36001
7 years, 6 months ago (2013-06-04 09:39:06 UTC) #10
commit-bot: I haz the power
7 years, 6 months ago (2013-06-04 17:16:29 UTC) #11
Message was sent while issue was closed.
Change committed as 203993

Powered by Google App Engine
This is Rietveld 408576698