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

Issue 14427006: Introduce a Factory for Declarative API objects that performs deduping (Closed)

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

Description

Introduce a Factory for Declarative API objects that performs deduping Many actions in the declarative WebRequest API are identical, e.g. because they redirect to the same destination. This CL reduces the likelihood that we allocate them multiple times, by adding a MRU cache. If a previously allocated object can be found in the cache, it is recycled. BUG=234232 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=197361

Patch Set 1 #

Total comments: 19

Patch Set 2 : Generalize DeduplicatingFactory so that it can be used for ContentAttributes as well #

Total comments: 4

Patch Set 3 : Addressed Vaclav's comments #

Patch Set 4 : Addressed vaclav's comments #

Total comments: 2

Patch Set 5 : Fixed failing tests #

Patch Set 6 : Merged with ToT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+380 lines, -0 lines) Patch
A chrome/browser/extensions/api/declarative/deduping_factory.h View 1 2 3 4 1 chunk +179 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/declarative/deduping_factory_unittest.cc View 1 2 3 4 1 chunk +199 lines, -0 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
battre
Hi Vaclav, can you please take a look at this CL? Thanks, Dominic
7 years, 8 months ago (2013-04-23 10:58:06 UTC) #1
vabr (Chromium)
Thanks, Dominic. I left some comments. Do we wait with using the DedupingFactory for actions ...
7 years, 8 months ago (2013-04-23 12:22:11 UTC) #2
vabr (Chromium)
https://codereview.chromium.org/14427006/diff/1/chrome/browser/extensions/api/declarative/deduping_factory_unittest.cc File chrome/browser/extensions/api/declarative/deduping_factory_unittest.cc (right): https://codereview.chromium.org/14427006/diff/1/chrome/browser/extensions/api/declarative/deduping_factory_unittest.cc#newcode22 chrome/browser/extensions/api/declarative/deduping_factory_unittest.cc:22: virtual Type GetType() const = 0; On 2013/04/23 12:22:12, ...
7 years, 8 months ago (2013-04-23 12:30:43 UTC) #3
battre
Please take another look. Also note that I did further changes in Change Set 2. ...
7 years, 8 months ago (2013-04-23 14:20:50 UTC) #4
vabr (Chromium)
Hi Dominic, Thanks, LGTM with comments. The changes between PS1 and PS2 look fine, although ...
7 years, 8 months ago (2013-04-23 15:47:23 UTC) #5
battre
Hi Vaclav, On 2013/04/23 15:47:23, vabr (Chromium) wrote: > Hi Dominic, > > Thanks, LGTM ...
7 years, 7 months ago (2013-04-29 17:21:50 UTC) #6
battre
Thanks for the review. https://codereview.chromium.org/14427006/diff/1/chrome/browser/extensions/api/declarative/deduping_factory.h File chrome/browser/extensions/api/declarative/deduping_factory.h (right): https://codereview.chromium.org/14427006/diff/1/chrome/browser/extensions/api/declarative/deduping_factory.h#newcode84 chrome/browser/extensions/api/declarative/deduping_factory.h:84: size_t max_number_prototypes_; On 2013/04/23 15:47:23, ...
7 years, 7 months ago (2013-04-29 17:42:33 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/battre@chromium.org/14427006/17001
7 years, 7 months ago (2013-04-29 17:42:59 UTC) #8
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=121845
7 years, 7 months ago (2013-04-29 18:11:57 UTC) #9
vabr (Chromium)
Hi Dominic, One more comment to fix the failing unit tests. LGTM. Vaclav https://codereview.chromium.org/14427006/diff/1/chrome/browser/extensions/api/declarative/deduping_factory.h File ...
7 years, 7 months ago (2013-04-30 07:33:31 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/battre@chromium.org/14427006/37001
7 years, 7 months ago (2013-04-30 12:40:00 UTC) #11
commit-bot: I haz the power
7 years, 7 months ago (2013-04-30 14:46:08 UTC) #12
Message was sent while issue was closed.
Change committed as 197361

Powered by Google App Engine
This is Rietveld 408576698