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

Issue 9422003: Migrate Declarative API bindings to new JSON objects generated by JSON compiler (Closed)

Created:
8 years, 10 months ago by battre
Modified:
8 years, 9 months ago
CC:
chromium-reviews, Aaron Boodman, mihaip+watch_chromium.org, calamity, not at google - send to devlin
Visibility:
Public.

Description

Migrate Declarative API bindings to new JSON objects generated by JSON compiler This CL mirgrates the Declarative API to use the objects generated by the new JSON compiler and allows using multiple threads. BUG=112155 TEST=no Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=124249

Patch Set 1 #

Patch Set 2 : Fixed function naming #

Total comments: 10

Patch Set 3 : Addressed comments and fixed some stuff #

Total comments: 7

Patch Set 4 : Pacify clang #

Total comments: 4

Patch Set 5 : Addressed comments, made RulesRegistry RefCountedThreadSafe #

Patch Set 6 : Fun with clang #

Patch Set 7 : Fixes and more tests #

Patch Set 8 : Resolved header file dependency issue #

Patch Set 9 : Fix memory leaks #

Unified diffs Side-by-side diffs Delta from patch set Stats (+527 lines, -242 lines) Patch
M chrome/browser/extensions/api/declarative/declarative_api.h View 1 2 3 4 5 6 1 chunk +26 lines, -5 lines 0 comments Download
M chrome/browser/extensions/api/declarative/declarative_api.cc View 1 2 3 4 5 2 chunks +59 lines, -95 lines 0 comments Download
M chrome/browser/extensions/api/declarative/declarative_api_constants.h View 1 2 1 chunk +0 lines, -27 lines 0 comments Download
M chrome/browser/extensions/api/declarative/declarative_api_constants.cc View 1 2 1 chunk +0 lines, -19 lines 0 comments Download
M chrome/browser/extensions/api/declarative/declarative_apitest.cc View 1 2 3 4 5 6 3 chunks +14 lines, -12 lines 0 comments Download
M chrome/browser/extensions/api/declarative/initializing_rules_registry.h View 1 2 3 4 5 6 5 chunks +11 lines, -8 lines 0 comments Download
M chrome/browser/extensions/api/declarative/initializing_rules_registry.cc View 1 2 3 4 5 6 8 chunks +25 lines, -26 lines 0 comments Download
A chrome/browser/extensions/api/declarative/initializing_rules_registry_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +154 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/declarative/rules_registry.h View 1 2 3 4 5 3 chunks +32 lines, -5 lines 0 comments Download
A chrome/browser/extensions/api/declarative/rules_registry.cc View 1 2 3 4 1 chunk +16 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/declarative/rules_registry_service.h View 1 2 3 4 5 6 3 chunks +10 lines, -5 lines 0 comments Download
M chrome/browser/extensions/api/declarative/rules_registry_service.cc View 1 2 3 4 5 6 3 chunks +29 lines, -11 lines 0 comments Download
A chrome/browser/extensions/api/declarative/rules_registry_service_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +111 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/declarative/test_rules_registry.h View 1 2 3 4 5 6 2 chunks +10 lines, -4 lines 0 comments Download
M chrome/browser/extensions/api/declarative/test_rules_registry.cc View 1 2 3 4 5 6 4 chunks +22 lines, -20 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/api.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/api/experimental.declarative.json View 3 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
battre
Hi. I am working on this CL and get a linker error: ../../third_party/gold/gold64: obj/chrome/common/extensions/api/libapi.a(obj/chrome/common/extensions/api/gen/chrome/common/extensions/api/api.experimental.declarative.o): in ...
8 years, 10 months ago (2012-02-17 17:54:35 UTC) #1
not at google - send to devlin
Just had a browse of the CL, awesome that we're using the schema compiler again. ...
8 years, 10 months ago (2012-02-18 02:59:01 UTC) #2
calamity
On 2012/02/18 02:59:01, kalman wrote: > Just had a browse of the CL, awesome that ...
8 years, 10 months ago (2012-02-20 00:56:37 UTC) #3
battre
I have addressed your comments. Thank you. Could you please have a look at the ...
8 years, 10 months ago (2012-02-20 10:17:36 UTC) #4
battre
Hi Matt, could you please review this? Thanks, Dominic
8 years, 10 months ago (2012-02-20 10:18:39 UTC) #5
not at google - send to devlin
lgtm https://chromiumcodereview.appspot.com/9422003/diff/2002/chrome/browser/extensions/api/declarative/declarative_api.cc File chrome/browser/extensions/api/declarative/declarative_api.cc (right): https://chromiumcodereview.appspot.com/9422003/diff/2002/chrome/browser/extensions/api/declarative/declarative_api.cc#newcode51 chrome/browser/extensions/api/declarative/declarative_api.cc:51: } On 2012/02/20 10:17:36, battre wrote: > On ...
8 years, 10 months ago (2012-02-20 11:50:51 UTC) #6
Matt Perry
https://chromiumcodereview.appspot.com/9422003/diff/4001/chrome/browser/extensions/api/declarative/declarative_api.cc File chrome/browser/extensions/api/declarative/declarative_api.cc (right): https://chromiumcodereview.appspot.com/9422003/diff/4001/chrome/browser/extensions/api/declarative/declarative_api.cc#newcode47 chrome/browser/extensions/api/declarative/declarative_api.cc:47: if (content::BrowserThread::CurrentlyOn(rules_registry_->GetOwnerThread())) { If rules_registry_ is owned by a ...
8 years, 10 months ago (2012-02-21 23:43:41 UTC) #7
battre
I have addressed your comments and added unit tests that I promised to add once ...
8 years, 9 months ago (2012-02-28 22:29:17 UTC) #8
Matt Perry
lgtm http://codereview.chromium.org/9422003/diff/4001/chrome/browser/extensions/api/declarative/declarative_api.cc File chrome/browser/extensions/api/declarative/declarative_api.cc (right): http://codereview.chromium.org/9422003/diff/4001/chrome/browser/extensions/api/declarative/declarative_api.cc#newcode47 chrome/browser/extensions/api/declarative/declarative_api.cc:47: if (content::BrowserThread::CurrentlyOn(rules_registry_->GetOwnerThread())) { On 2012/02/28 22:29:18, battre wrote: ...
8 years, 9 months ago (2012-02-28 23:01:52 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/battre@chromium.org/9422003/30001
8 years, 9 months ago (2012-02-29 19:06:49 UTC) #10
commit-bot: I haz the power
8 years, 9 months ago (2012-02-29 21:05:05 UTC) #11
Change committed as 124249

Powered by Google App Engine
This is Rietveld 408576698