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

Issue 10809094: Context Menus now uses the JSON Schema Compiler. (Closed)

Created:
8 years, 5 months ago by chebert
Modified:
8 years, 4 months ago
CC:
chromium-reviews, Aaron Boodman, mihaip-chromium-reviews_chromium.org, pam+watch_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@json_functions_as_properties
Visibility:
Public.

Description

Context Menus now uses the JSON Schema Compiler. BUG=121174 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=151595

Patch Set 1 #

Patch Set 2 : code cleanup #

Patch Set 3 : adjust to new json_function_as_parameters mods #

Total comments: 34

Patch Set 4 : switchy switch switch switch switch switch. switchy switch. #

Total comments: 20

Patch Set 5 : templates. #

Total comments: 22

Patch Set 6 : convergence #

Patch Set 7 : should pass browser_tests now #

Patch Set 8 : * #

Total comments: 23

Patch Set 9 : Parse*() become Get*(), and const s have been added where appropriate #

Patch Set 10 : added unittests for Populate() and PopulateURLPatterns() #

Patch Set 11 : renamed unittest in url_pattern_set_unittest #

Total comments: 15

Patch Set 12 : made some minor changes #

Total comments: 8

Patch Set 13 : GetParentId returns a scoped_ptr instead of a bool #

Unified diffs Side-by-side diffs Delta from patch set Stats (+347 lines, -270 lines) Patch
M chrome/browser/extensions/api/context_menu/context_menu_api.h View 1 4 chunks +4 lines, -50 lines 0 comments Download
M chrome/browser/extensions/api/context_menu/context_menu_api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 8 chunks +185 lines, -191 lines 0 comments Download
M chrome/browser/extensions/menu_manager.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/extensions/menu_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +41 lines, -18 lines 0 comments Download
M chrome/browser/extensions/menu_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +64 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/api.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/url_pattern_set.h View 1 2 3 5 8 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/common/extensions/url_pattern_set.cc View 1 2 3 4 5 8 2 chunks +19 lines, -8 lines 0 comments Download
M chrome/common/extensions/url_pattern_set_unittest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +23 lines, -0 lines 0 comments Download
M tools/json_schema_compiler/cpp_type_generator.py View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
chebert
This one is still dependent on the https://chromiumcodereview.appspot.com/10824002/ (JSON Schema Compiler supports functions as PropertyTypes.) ...
8 years, 5 months ago (2012-07-26 00:25:55 UTC) #1
not at google - send to devlin
Generally if you're doing something which depends on the value of an enum, use switch. ...
8 years, 5 months ago (2012-07-26 04:16:20 UTC) #2
chebert
switched https://chromiumcodereview.appspot.com/10809094/diff/5001/chrome/browser/extensions/api/context_menu/context_menu_api.cc File chrome/browser/extensions/api/context_menu/context_menu_api.cc (right): https://chromiumcodereview.appspot.com/10809094/diff/5001/chrome/browser/extensions/api/context_menu/context_menu_api.cc#newcode31 chrome/browser/extensions/api/context_menu/context_menu_api.cc:31: const char kTypeKey[] = "type"; On 2012/07/26 04:16:20, ...
8 years, 5 months ago (2012-07-27 01:28:23 UTC) #3
not at google - send to devlin
looking better. still looks kinda boilerplatey; the goal of using JSC is to cut down ...
8 years, 4 months ago (2012-07-30 15:36:52 UTC) #4
chebert
total less 8 lines. https://chromiumcodereview.appspot.com/10809094/diff/9002/chrome/browser/extensions/api/context_menu/context_menu_api.cc File chrome/browser/extensions/api/context_menu/context_menu_api.cc (right): https://chromiumcodereview.appspot.com/10809094/diff/9002/chrome/browser/extensions/api/context_menu/context_menu_api.cc#newcode69 chrome/browser/extensions/api/context_menu/context_menu_api.cc:69: &id.uid)); On 2012/07/30 15:36:53, kalman ...
8 years, 4 months ago (2012-07-30 22:45:18 UTC) #5
not at google - send to devlin
almost done. looking good. https://chromiumcodereview.appspot.com/10809094/diff/14001/chrome/browser/extensions/api/context_menu/context_menu_api.cc File chrome/browser/extensions/api/context_menu/context_menu_api.cc (right): https://chromiumcodereview.appspot.com/10809094/diff/14001/chrome/browser/extensions/api/context_menu/context_menu_api.cc#newcode47 chrome/browser/extensions/api/context_menu/context_menu_api.cc:47: PropertyWithEnumT& property) { pass const& ...
8 years, 4 months ago (2012-07-31 06:53:09 UTC) #6
chebert
https://chromiumcodereview.appspot.com/10809094/diff/14001/chrome/browser/extensions/api/context_menu/context_menu_api.cc File chrome/browser/extensions/api/context_menu/context_menu_api.cc (right): https://chromiumcodereview.appspot.com/10809094/diff/14001/chrome/browser/extensions/api/context_menu/context_menu_api.cc#newcode47 chrome/browser/extensions/api/context_menu/context_menu_api.cc:47: PropertyWithEnumT& property) { On 2012/07/31 06:53:09, kalman wrote: > ...
8 years, 4 months ago (2012-08-02 23:56:40 UTC) #7
not at google - send to devlin
lg but there are those style issues to fix before submitting. http://codereview.chromium.org/10809094/diff/11006/chrome/browser/extensions/api/context_menu/context_menu_api.cc File chrome/browser/extensions/api/context_menu/context_menu_api.cc (right): ...
8 years, 4 months ago (2012-08-06 01:55:44 UTC) #8
chebert
This is embarrassing. I definitely made all of the suggested changes in another git branch, ...
8 years, 4 months ago (2012-08-06 03:38:04 UTC) #9
not at google - send to devlin
https://chromiumcodereview.appspot.com/10809094/diff/11006/chrome/browser/extensions/menu_manager.cc File chrome/browser/extensions/menu_manager.cc (right): https://chromiumcodereview.appspot.com/10809094/diff/11006/chrome/browser/extensions/menu_manager.cc#newcode266 chrome/browser/extensions/menu_manager.cc:266: } On 2012/08/06 03:38:04, chebert wrote: > Umm. Sorry ...
8 years, 4 months ago (2012-08-06 03:58:42 UTC) #10
chebert
Double-checked...I uploaded the right patch this time. https://chromiumcodereview.appspot.com/10809094/diff/11006/chrome/browser/extensions/api/context_menu/context_menu_api.cc File chrome/browser/extensions/api/context_menu/context_menu_api.cc (right): https://chromiumcodereview.appspot.com/10809094/diff/11006/chrome/browser/extensions/api/context_menu/context_menu_api.cc#newcode46 chrome/browser/extensions/api/context_menu/context_menu_api.cc:46: bool ParseContexts(extensions::MenuItem::ContextList& ...
8 years, 4 months ago (2012-08-06 22:43:06 UTC) #11
not at google - send to devlin
lgtm. Still some things to fix up but I don't think another review round-trip will ...
8 years, 4 months ago (2012-08-07 02:00:11 UTC) #12
chebert
https://chromiumcodereview.appspot.com/10809094/diff/7007/chrome/browser/extensions/api/context_menu/context_menu_api.cc File chrome/browser/extensions/api/context_menu/context_menu_api.cc (right): https://chromiumcodereview.appspot.com/10809094/diff/7007/chrome/browser/extensions/api/context_menu/context_menu_api.cc#newcode47 chrome/browser/extensions/api/context_menu/context_menu_api.cc:47: PropertyWithEnumT const& property) { On 2012/08/07 02:00:11, kalman wrote: ...
8 years, 4 months ago (2012-08-13 22:41:52 UTC) #13
not at google - send to devlin
still lgtm http://codereview.chromium.org/10809094/diff/7007/chrome/browser/extensions/api/context_menu/context_menu_api.cc File chrome/browser/extensions/api/context_menu/context_menu_api.cc (right): http://codereview.chromium.org/10809094/diff/7007/chrome/browser/extensions/api/context_menu/context_menu_api.cc#newcode112 chrome/browser/extensions/api/context_menu/context_menu_api.cc:112: return false; On 2012/08/13 22:41:52, chebert wrote: ...
8 years, 4 months ago (2012-08-14 05:12:21 UTC) #14
chebert
https://chromiumcodereview.appspot.com/10809094/diff/7007/chrome/browser/extensions/api/context_menu/context_menu_api.cc File chrome/browser/extensions/api/context_menu/context_menu_api.cc (right): https://chromiumcodereview.appspot.com/10809094/diff/7007/chrome/browser/extensions/api/context_menu/context_menu_api.cc#newcode112 chrome/browser/extensions/api/context_menu/context_menu_api.cc:112: return false; On 2012/08/14 05:12:21, kalman wrote: > On ...
8 years, 4 months ago (2012-08-14 18:56:53 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hebert.christopherj@chromium.org/10809094/16013
8 years, 4 months ago (2012-08-14 18:57:19 UTC) #16
commit-bot: I haz the power
Try job failure for 10809094-16013 (retry) on win_rel for step "runhooks". It's a second try, ...
8 years, 4 months ago (2012-08-14 20:31:09 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hebert.christopherj@chromium.org/10809094/16013
8 years, 4 months ago (2012-08-14 20:47:50 UTC) #18
not at google - send to devlin
https://chromiumcodereview.appspot.com/10809094/diff/13007/chrome/browser/extensions/menu_manager_unittest.cc File chrome/browser/extensions/menu_manager_unittest.cc (right): https://chromiumcodereview.appspot.com/10809094/diff/13007/chrome/browser/extensions/menu_manager_unittest.cc#newcode602 chrome/browser/extensions/menu_manager_unittest.cc:602: delete list; On 2012/08/14 18:56:53, chebert wrote: > This ...
8 years, 4 months ago (2012-08-14 22:04:48 UTC) #19
chebert
https://chromiumcodereview.appspot.com/10809094/diff/13007/chrome/browser/extensions/menu_manager_unittest.cc File chrome/browser/extensions/menu_manager_unittest.cc (right): https://chromiumcodereview.appspot.com/10809094/diff/13007/chrome/browser/extensions/menu_manager_unittest.cc#newcode602 chrome/browser/extensions/menu_manager_unittest.cc:602: delete list; it would need to be .WillOnce(SaveArg<2>(&(list.get())) and ...
8 years, 4 months ago (2012-08-14 22:06:49 UTC) #20
commit-bot: I haz the power
8 years, 4 months ago (2012-08-14 23:06:16 UTC) #21
Change committed as 151595

Powered by Google App Engine
This is Rietveld 408576698