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

Issue 12089062: Move API functions registrations out of ExtensionFunctionRegistry. (Closed)

Created:
7 years, 10 months ago by SanjoyPal
Modified:
7 years, 10 months ago
Reviewers:
Yoyo Zhou
CC:
chromium-reviews, Aaron Boodman, chromium-apps-reviews_chromium.org, MAD, jar (doing other things), hashimoto+watch_chromium.org, aboxhall+watch_chromium.org, yoshiki+watch_chromium.org, yuzo+watch_chromium.org, davidbarr+watch_chromium.org, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, ctguil+watch_chromium.org, Ilya Sherman, zork+watch_chromium.org
Visibility:
Public.

Description

Move API functions registrations out of ExtensionFunctionRegistry. JSON schema compiler automatically registers api functions in generated_api.cc files for the JSON files specified as schema_files in api.gyp. JSON schema compiler generates code in specific namespace, function names and file paths as per json files. BUG=159265 TBR=mirandac@chromium.org TBR=ben@chromium.org TBR=kalman@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=182423

Patch Set 1 #

Patch Set 2 : #

Total comments: 4

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 2

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1453 lines, -1549 lines) Patch
chrome/browser/accessibility/accessibility_extension_api.h View 1 2 3 4 5 6 7 3 chunks +7 lines, -6 lines 0 comments Download
chrome/browser/accessibility/accessibility_extension_api.cc View 1 2 3 4 5 6 7 3 chunks +3 lines, -3 lines 0 comments Download
chrome/browser/chromeos/extensions/echo_private_api.h View 1 2 3 4 5 6 7 3 chunks +10 lines, -9 lines 0 comments Download
chrome/browser/chromeos/extensions/echo_private_api.cc View 1 2 3 4 5 6 7 5 chunks +23 lines, -18 lines 0 comments Download
chrome/browser/chromeos/extensions/info_private_api.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -3 lines 0 comments Download
chrome/browser/chromeos/extensions/info_private_api.cc View 1 2 3 4 5 6 7 2 chunks +4 lines, -4 lines 0 comments Download
chrome/browser/chromeos/extensions/media_player_api.h View 1 2 3 4 5 6 7 1 chunk +8 lines, -8 lines 0 comments Download
chrome/browser/chromeos/extensions/media_player_api.cc View 1 2 3 4 5 6 7 4 chunks +4 lines, -4 lines 0 comments Download
chrome/browser/chromeos/extensions/power/power_api.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -6 lines 0 comments Download
chrome/browser/chromeos/extensions/power/power_api.cc View 1 2 3 4 5 6 7 1 chunk +6 lines, -6 lines 0 comments Download
chrome/browser/chromeos/extensions/power/power_api_browsertest.cc View 1 2 3 4 5 6 7 3 chunks +4 lines, -6 lines 0 comments Download
chrome/browser/chromeos/extensions/wallpaper_private_api.h View 1 2 3 4 5 6 7 7 chunks +31 lines, -26 lines 0 comments Download
chrome/browser/chromeos/extensions/wallpaper_private_api.cc View 1 2 3 4 5 6 7 17 chunks +76 lines, -68 lines 0 comments Download
chrome/browser/chromeos/extensions/wallpaper_private_api_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -4 lines 0 comments Download
chrome/browser/chromeos/power/brightness_observer.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
chrome/browser/chromeos/power/resume_observer.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
chrome/browser/chromeos/power/screen_lock_observer.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
chrome/browser/chromeos/power/suspend_observer.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
chrome/browser/extensions/api/bookmark_manager_private/bookmark_manager_private_api.h View 1 2 3 4 5 6 7 2 chunks +31 lines, -22 lines 0 comments Download
chrome/browser/extensions/api/bookmark_manager_private/bookmark_manager_private_api.cc View 1 2 3 4 5 6 7 9 chunks +11 lines, -11 lines 0 comments Download
chrome/browser/extensions/api/managed_mode/managed_mode_api.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -122 lines 0 comments Download
chrome/browser/extensions/api/managed_mode/managed_mode_api.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -154 lines 0 comments Download
chrome/browser/extensions/api/managed_mode/managed_mode_apitest.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -47 lines 0 comments Download
chrome/browser/extensions/api/managed_mode_private/managed_mode_apitest.cc View 1 2 3 1 chunk +47 lines, -0 lines 0 comments Download
chrome/browser/extensions/api/managed_mode_private/managed_mode_private_api.h View 1 2 3 1 chunk +122 lines, -0 lines 0 comments Download
chrome/browser/extensions/api/managed_mode_private/managed_mode_private_api.cc View 1 2 3 4 5 6 7 1 chunk +154 lines, -0 lines 0 comments Download
chrome/browser/extensions/api/metrics/metrics.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -135 lines 0 comments Download
chrome/browser/extensions/api/metrics/metrics.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -146 lines 0 comments Download
chrome/browser/extensions/api/metrics/metrics_apitest.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -136 lines 0 comments Download
chrome/browser/extensions/api/metrics_private/metrics_apitest.cc View 1 2 3 4 5 6 7 1 chunk +136 lines, -0 lines 0 comments Download
chrome/browser/extensions/api/metrics_private/metrics_private_api.h View 1 1 chunk +142 lines, -0 lines 0 comments Download
chrome/browser/extensions/api/metrics_private/metrics_private_api.cc View 1 2 1 chunk +146 lines, -0 lines 0 comments Download
chrome/browser/extensions/api/module/module.h View 1 2 3 4 5 6 7 2 chunks +7 lines, -6 lines 0 comments Download
chrome/browser/extensions/api/module/module.cc View 1 2 3 4 5 6 7 3 chunks +4 lines, -4 lines 0 comments Download
chrome/browser/extensions/api/system_private/system_private_api.h View 1 2 3 1 chunk +55 lines, -0 lines 0 comments Download
chrome/browser/extensions/api/system_private/system_private_api.cc View 1 2 3 4 5 6 7 1 chunk +157 lines, -0 lines 0 comments Download
chrome/browser/extensions/api/system_private/system_private_apitest.cc View 1 2 3 4 5 6 7 1 chunk +72 lines, -0 lines 0 comments Download
chrome/browser/extensions/api/terminal/terminal_private_api.h View 1 2 3 4 5 6 7 4 chunks +11 lines, -9 lines 0 comments Download
chrome/browser/extensions/api/terminal/terminal_private_api.cc View 1 2 3 4 5 6 7 6 chunks +36 lines, -28 lines 0 comments Download
chrome/browser/extensions/api/test/test_api.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
chrome/browser/extensions/api/test/test_api.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
chrome/browser/extensions/api/top_sites/top_sites_api.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -4 lines 0 comments Download
chrome/browser/extensions/api/top_sites/top_sites_api.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -5 lines 0 comments Download
chrome/browser/extensions/api/top_sites/top_sites_apitest.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
chrome/browser/extensions/extension_function_registry.cc View 1 2 3 4 5 6 7 4 chunks +7 lines, -146 lines 0 comments Download
chrome/browser/extensions/system/system_api.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -54 lines 0 comments Download
chrome/browser/extensions/system/system_api.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -157 lines 0 comments Download
chrome/browser/extensions/system/system_apitest.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -72 lines 0 comments Download
chrome/browser/infobars/infobar_extension_api.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
chrome/browser/infobars/infobar_extension_api.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
chrome/browser/profiles/profile_dependency_manager.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
chrome/browser/ui/ash/volume_controller_chromeos.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
chrome/chrome_browser_extensions.gypi View 1 2 3 4 5 6 7 3 chunks +6 lines, -6 lines 0 comments Download
chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 3 chunks +3 lines, -3 lines 0 comments Download
chrome/common/extensions/api/api.gyp View 1 2 3 4 5 6 7 3 chunks +19 lines, -0 lines 0 comments Download
chrome/common/extensions/api/chromeos_info_private.json View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
chrome/common/extensions/api/echo_private.json View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
chrome/common/extensions/api/experimental_accessibility.json View 1 2 3 4 5 6 7 2 chunks +38 lines, -35 lines 0 comments Download
chrome/common/extensions/api/experimental_infobars.json View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
chrome/common/extensions/api/experimental_power.json View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
chrome/common/extensions/api/extension.json View 1 2 3 4 5 6 7 6 chunks +8 lines, -1 line 0 comments Download
chrome/common/extensions/api/extension_api.cc View 1 2 3 4 5 6 7 3 chunks +0 lines, -40 lines 0 comments Download
chrome/common/extensions/api/media_player_private.json View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
chrome/common/extensions/api/terminal_private.json View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
chrome/common/extensions/api/wallpaper_private.json View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
chrome/common/extensions/api/webstore_private.json View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
chrome/common/extensions_api_resources.grd View 1 2 3 4 5 6 7 1 chunk +0 lines, -19 lines 0 comments Download
tools/json_schema_compiler/cpp_util.py View 1 2 3 4 5 6 7 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 26 (0 generated)
SanjoyPal
There are few json file names with experimental_ prefix which generate function names/file names with ...
7 years, 10 months ago (2013-01-30 03:40:34 UTC) #1
SanjoyPal
Its already handled in json compiler side. Please ignore the above comment.
7 years, 10 months ago (2013-01-30 04:01:40 UTC) #2
not at google - send to devlin
Nice. You can also delete the references to them in extension_api.cc and extensions_api_resources.grd. And yep ...
7 years, 10 months ago (2013-01-30 04:04:43 UTC) #3
Yoyo Zhou
Sweet. LGTM.
7 years, 10 months ago (2013-01-30 21:35:55 UTC) #4
SanjoyPal
Move API functions registrations out of ExtensionFunctionRegistry. BUG=159265
7 years, 10 months ago (2013-02-01 01:55:38 UTC) #5
SanjoyPal
Added some more json files to api.gyp. Done some modifications in json files and cpp_util.py. ...
7 years, 10 months ago (2013-02-01 02:18:23 UTC) #6
Yoyo Zhou
https://codereview.chromium.org/12089062/diff/4005/tools/json_schema_compiler/cpp_util.py File tools/json_schema_compiler/cpp_util.py (right): https://codereview.chromium.org/12089062/diff/4005/tools/json_schema_compiler/cpp_util.py#newcode34 tools/json_schema_compiler/cpp_util.py:34: new_s = re.sub(r'[^a-zA-Z0-9]', '.',s) If we're going to go ...
7 years, 10 months ago (2013-02-01 19:57:18 UTC) #7
not at google - send to devlin
https://codereview.chromium.org/12089062/diff/4005/tools/json_schema_compiler/cpp_util.py File tools/json_schema_compiler/cpp_util.py (right): https://codereview.chromium.org/12089062/diff/4005/tools/json_schema_compiler/cpp_util.py#newcode35 tools/json_schema_compiler/cpp_util.py:35: return '_'.join([x[0].upper() + x[1:] for x in new_s.split('.')]) why ...
7 years, 10 months ago (2013-02-01 19:59:01 UTC) #8
SanjoyPal
https://codereview.chromium.org/12089062/diff/4005/tools/json_schema_compiler/cpp_util.py File tools/json_schema_compiler/cpp_util.py (right): https://codereview.chromium.org/12089062/diff/4005/tools/json_schema_compiler/cpp_util.py#newcode35 tools/json_schema_compiler/cpp_util.py:35: return '_'.join([x[0].upper() + x[1:] for x in new_s.split('.')]) On ...
7 years, 10 months ago (2013-02-01 20:16:28 UTC) #9
SanjoyPal
PTAL. Thanks
7 years, 10 months ago (2013-02-05 20:59:50 UTC) #10
Yoyo Zhou
On 2013/02/05 20:59:50, SanjoyPal wrote: > PTAL. Thanks You didn't address my comment on cpp_util.py.
7 years, 10 months ago (2013-02-05 21:12:13 UTC) #11
SanjoyPal
Updated. Please review. https://codereview.chromium.org/12089062/diff/4005/tools/json_schema_compiler/cpp_util.py File tools/json_schema_compiler/cpp_util.py (right): https://codereview.chromium.org/12089062/diff/4005/tools/json_schema_compiler/cpp_util.py#newcode34 tools/json_schema_compiler/cpp_util.py:34: new_s = re.sub(r'[^a-zA-Z0-9]', '.',s) On 2013/02/01 ...
7 years, 10 months ago (2013-02-05 21:45:33 UTC) #12
Yoyo Zhou
https://codereview.chromium.org/12089062/diff/43015/tools/json_schema_compiler/cpp_util.py File tools/json_schema_compiler/cpp_util.py (right): https://codereview.chromium.org/12089062/diff/43015/tools/json_schema_compiler/cpp_util.py#newcode35 tools/json_schema_compiler/cpp_util.py:35: return '_'.join([x[0].upper() + x[1:] for x in re.split('\.', new_s)]) ...
7 years, 10 months ago (2013-02-05 23:42:13 UTC) #13
SanjoyPal
Done. https://codereview.chromium.org/12089062/diff/43015/tools/json_schema_compiler/cpp_util.py File tools/json_schema_compiler/cpp_util.py (right): https://codereview.chromium.org/12089062/diff/43015/tools/json_schema_compiler/cpp_util.py#newcode35 tools/json_schema_compiler/cpp_util.py:35: return '_'.join([x[0].upper() + x[1:] for x in re.split('\.', ...
7 years, 10 months ago (2013-02-06 00:47:20 UTC) #14
Yoyo Zhou
LGTM
7 years, 10 months ago (2013-02-11 19:42:04 UTC) #15
Yoyo Zhou
On 2013/02/11 19:42:04, Yoyo Zhou wrote: > LGTM And please update the changelist description to ...
7 years, 10 months ago (2013-02-11 19:43:45 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ncj674@motorola.com/12089062/37019
7 years, 10 months ago (2013-02-11 20:07:01 UTC) #17
commit-bot: I haz the power
Failed to apply patch for chrome/browser/chromeos/extensions/echo_private_api.cc: While running patch -p0 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 10 months ago (2013-02-11 20:07:27 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ncj674@motorola.com/12089062/44104
7 years, 10 months ago (2013-02-11 20:51:38 UTC) #19
commit-bot: I haz the power
Failed to apply patch for chrome/browser/chromeos/power/suspend_observer.cc: While running patch -p0 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 10 months ago (2013-02-11 20:52:12 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ncj674@motorola.com/12089062/50026
7 years, 10 months ago (2013-02-12 01:59:58 UTC) #21
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) content_browsertests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=110618
7 years, 10 months ago (2013-02-12 04:51:11 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ncj674@motorola.com/12089062/66001
7 years, 10 months ago (2013-02-12 18:55:47 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ncj674@motorola.com/12089062/66001
7 years, 10 months ago (2013-02-13 18:52:27 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ncj674@motorola.com/12089062/66001
7 years, 10 months ago (2013-02-13 19:29:19 UTC) #25
commit-bot: I haz the power
7 years, 10 months ago (2013-02-14 08:42:55 UTC) #26
Message was sent while issue was closed.
Change committed as 182423

Powered by Google App Engine
This is Rietveld 408576698