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

Issue 9315010: RulesRegistry for declarative APIs. (Closed)

Created:
8 years, 10 months ago by battre
Modified:
8 years, 10 months ago
CC:
chromium-reviews, mihaip+watch_chromium.org, koz (OOO until 15th September), calamity
Visibility:
Public.

Description

RulesRegistry for declarative APIs. This CL implements a RuleRegistry mechanism so that adding/removing/getting rules can be dispatched to individual implementations of the RulesRegistry. BUG=112155 TEST=no Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=121369

Patch Set 1 #

Total comments: 1

Patch Set 2 : Implemented ID and priority generation #

Total comments: 64

Patch Set 3 : Addressed comments #

Total comments: 1

Patch Set 4 : Addressed remaining comments #

Total comments: 17

Patch Set 5 : Merged with ToT for trybot testing #

Total comments: 33

Patch Set 6 : Addressed comments #

Total comments: 7

Patch Set 7 : Addressed comments #

Patch Set 8 : Removed a CHECK #

Total comments: 1

Patch Set 9 : Replaced string literals with constants #

Patch Set 10 : Fixed comiler errors #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1082 lines, -9 lines) Patch
M chrome/browser/extensions/api/declarative/declarative_api.cc View 1 2 3 4 5 6 1 chunk +122 lines, -6 lines 0 comments Download
A chrome/browser/extensions/api/declarative/declarative_api_constants.h View 1 2 3 4 5 1 chunk +27 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/declarative/declarative_api_constants.cc View 1 2 3 4 5 1 chunk +19 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/declarative/declarative_apitest.cc View 1 2 3 4 5 1 chunk +62 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/declarative/initializing_rules_registry.h View 1 2 3 4 5 6 7 8 9 1 chunk +81 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/declarative/initializing_rules_registry.cc View 1 2 3 4 5 6 7 8 9 1 chunk +151 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/declarative/rules_registry.h View 1 2 3 4 5 6 7 8 9 1 chunk +80 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/declarative/rules_registry_service.h View 1 2 3 4 5 6 1 chunk +66 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/declarative/rules_registry_service.cc View 1 2 3 4 5 6 1 chunk +62 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/declarative/test_rules_registry.h View 1 2 3 4 5 6 7 8 9 1 chunk +57 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/declarative/test_rules_registry.cc View 1 2 3 4 5 6 7 8 9 1 chunk +98 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_service.h View 1 2 3 4 5 6 7 8 9 3 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 2 3 4 5 6 7 8 9 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/api/webRequest.json View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
A chrome/test/data/extensions/api_test/declarative/api/background.js View 1 2 3 4 5 1 chunk +217 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/declarative/api/manifest.json View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
battre
Hi. Could you please review this? BTW: Do you both want to review the following ...
8 years, 10 months ago (2012-01-31 21:03:54 UTC) #1
battre
CC'ed kalman and koz
8 years, 10 months ago (2012-02-01 17:36:11 UTC) #2
not at google - send to devlin
First go. Apologies again for the review epicness. http://codereview.chromium.org/9315010/diff/4002/chrome/browser/extensions/api/declarative/declarative_api.cc File chrome/browser/extensions/api/declarative/declarative_api.cc (right): http://codereview.chromium.org/9315010/diff/4002/chrome/browser/extensions/api/declarative/declarative_api.cc#newcode17 chrome/browser/extensions/api/declarative/declarative_api.cc:17: // ...
8 years, 10 months ago (2012-02-02 11:59:16 UTC) #3
Aaron Boodman
https://chromiumcodereview.appspot.com/9315010/diff/4002/chrome/browser/extensions/api/declarative/declarative_api.cc File chrome/browser/extensions/api/declarative/declarative_api.cc (right): https://chromiumcodereview.appspot.com/9315010/diff/4002/chrome/browser/extensions/api/declarative/declarative_api.cc#newcode84 chrome/browser/extensions/api/declarative/declarative_api.cc:84: for (ListValue::iterator i = rule_identifiers_list->begin(); If you don't end ...
8 years, 10 months ago (2012-02-02 16:28:50 UTC) #4
Aaron Boodman
https://chromiumcodereview.appspot.com/9315010/diff/4002/chrome/browser/extensions/api/declarative/rules_registry_service.h File chrome/browser/extensions/api/declarative/rules_registry_service.h (right): https://chromiumcodereview.appspot.com/9315010/diff/4002/chrome/browser/extensions/api/declarative/rules_registry_service.h#newcode53 chrome/browser/extensions/api/declarative/rules_registry_service.h:53: // on which the function was called. On 2012/02/02 ...
8 years, 10 months ago (2012-02-02 16:30:25 UTC) #5
Aaron Boodman
On 2012/02/02 16:28:50, Aaron Boodman wrote: > To be honest, I am not sure how ...
8 years, 10 months ago (2012-02-02 16:32:49 UTC) #6
battre
Thanks for the extensive review. Best, Dominic http://codereview.chromium.org/9315010/diff/4002/chrome/browser/extensions/api/declarative/declarative_api.cc File chrome/browser/extensions/api/declarative/declarative_api.cc (right): http://codereview.chromium.org/9315010/diff/4002/chrome/browser/extensions/api/declarative/declarative_api.cc#newcode17 chrome/browser/extensions/api/declarative/declarative_api.cc:17: // called. ...
8 years, 10 months ago (2012-02-02 19:12:36 UTC) #7
not at google - send to devlin
Just responding to comments from last review. I'll have look at the new state of ...
8 years, 10 months ago (2012-02-03 13:06:20 UTC) #8
Aaron Boodman
http://codereview.chromium.org/9315010/diff/4002/chrome/browser/extensions/api/declarative/rules_registry_service.h File chrome/browser/extensions/api/declarative/rules_registry_service.h (right): http://codereview.chromium.org/9315010/diff/4002/chrome/browser/extensions/api/declarative/rules_registry_service.h#newcode36 chrome/browser/extensions/api/declarative/rules_registry_service.h:36: // Use the RulesRegistryServiceFactory to retrieve an instance of ...
8 years, 10 months ago (2012-02-03 18:04:51 UTC) #9
kalman_google
> > > I do think that we should add the 'internal' flag though, so ...
8 years, 10 months ago (2012-02-03 22:38:55 UTC) #10
not at google - send to devlin
On 2012/02/03 22:38:55, kalman_google wrote: > > > > > > I do think that ...
8 years, 10 months ago (2012-02-06 05:09:11 UTC) #11
battre
I have addressed all remaining issues (added a unit test, removed the test classes from ...
8 years, 10 months ago (2012-02-06 16:21:04 UTC) #12
not at google - send to devlin
Sorry to have so many comments again, I feel like a bit of an ass... ...
8 years, 10 months ago (2012-02-07 03:25:09 UTC) #13
not at google - send to devlin
http://codereview.chromium.org/9315010/diff/11001/chrome/browser/extensions/api/declarative/test_rules_registry.h File chrome/browser/extensions/api/declarative/test_rules_registry.h (right): http://codereview.chromium.org/9315010/diff/11001/chrome/browser/extensions/api/declarative/test_rules_registry.h#newcode42 chrome/browser/extensions/api/declarative/test_rules_registry.h:42: std::map<std::string, DictionaryValue*> rules_; also: linked_ptr<DictionaryValue> rather than manually deleting ...
8 years, 10 months ago (2012-02-07 03:28:10 UTC) #14
not at google - send to devlin
http://codereview.chromium.org/9315010/diff/10003/chrome/browser/extensions/api/declarative/declarative_api.cc File chrome/browser/extensions/api/declarative/declarative_api.cc (right): http://codereview.chromium.org/9315010/diff/10003/chrome/browser/extensions/api/declarative/declarative_api.cc#newcode52 chrome/browser/extensions/api/declarative/declarative_api.cc:52: EXTENSION_FUNCTION_VALIDATE(args_->GetList(1, &rule_identifiers_list)); On 2012/02/07 03:25:10, kalman wrote: > This ...
8 years, 10 months ago (2012-02-07 05:08:01 UTC) #15
battre
Hi Ben, The InitializingRulesRegistry got such a complexity that I want to add unittests. I ...
8 years, 10 months ago (2012-02-07 18:45:32 UTC) #16
not at google - send to devlin
Looking really good. Just those last couple of things from me. http://codereview.chromium.org/9315010/diff/11001/chrome/browser/extensions/api/declarative/declarative_apitest.cc File chrome/browser/extensions/api/declarative/declarative_apitest.cc (right): ...
8 years, 10 months ago (2012-02-07 23:54:57 UTC) #17
battre
I have addressed your issues. I propose to add the unittests for initializing_rules_registry.cc in a ...
8 years, 10 months ago (2012-02-08 12:49:54 UTC) #18
not at google - send to devlin
LGTM thanks for putting up with me :) http://codereview.chromium.org/9315010/diff/10003/chrome/browser/extensions/api/declarative/rules_registry.h File chrome/browser/extensions/api/declarative/rules_registry.h (right): http://codereview.chromium.org/9315010/diff/10003/chrome/browser/extensions/api/declarative/rules_registry.h#newcode52 chrome/browser/extensions/api/declarative/rules_registry.h:52: std::string* ...
8 years, 10 months ago (2012-02-08 22:31:18 UTC) #19
battre
Thanks Ben for the great review. It's highly appreciated. Matt or Aaron, could you please ...
8 years, 10 months ago (2012-02-08 22:38:56 UTC) #20
Matt Perry
lgtm
8 years, 10 months ago (2012-02-09 20:33:21 UTC) #21
Aaron Boodman
I think all possible comments have been made. LGTM. On Thu, Feb 9, 2012 at ...
8 years, 10 months ago (2012-02-09 20:35:15 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/battre@chromium.org/9315010/38001
8 years, 10 months ago (2012-02-09 20:49:07 UTC) #23
commit-bot: I haz the power
Try job failure for 9315010-38001 (retry) (retry) on linux_rel for step "browser_tests". It's a second ...
8 years, 10 months ago (2012-02-09 22:15:01 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/battre@chromium.org/9315010/38001
8 years, 10 months ago (2012-02-09 22:57:20 UTC) #25
commit-bot: I haz the power
8 years, 10 months ago (2012-02-10 01:45:48 UTC) #26
Change committed as 121369

Powered by Google App Engine
This is Rietveld 408576698