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

Issue 177003015: Pull AsyncApiFunction out of src/chrome (Closed)

Created:
6 years, 10 months ago by Ken Rockot(use gerrit already)
Modified:
6 years, 9 months ago
Reviewers:
James Cook, Yoyo Zhou
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Visibility:
Public.

Description

Pull AsyncApiFunction out of src/chrome AsyncApiFunction now inherits UIThreadExtensionFunction directly, rather than depending on ChromeAsyncExtensionFunction. It's also been moved from chrome/browser/extensions/api/api_function.{h,cc} to extensions/browser/api/async_api_function.{h,cc}. With the exception of notifications API functions, anything which previously depended on AsyncApiFunction's inheritance of ChromeAsyncExtensionFunction was doing so only for GetProfile. In all cases, GetProfile() has been replaced with ExtensionFunction::browser_context() (renamed from context()). Finally, ApiFunction has been removed since it was identical to ChromeAsyncExtensionFunction. BUG=346949 TBR=dmazzoni@chromium.org,mfoltz@chromium.org,fgorski@chromium.org,courage@chromium.org,dewittj@chromium.org,rpaquay@chromium.org,kalman@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=254113

Patch Set 1 #

Total comments: 9

Patch Set 2 : nits #

Patch Set 3 : rebase #

Patch Set 4 : rebase #

Patch Set 5 : rebase and some additional cleanup #

Patch Set 6 : rebase on hid_api #

Patch Set 7 : rebaser! #

Total comments: 3

Patch Set 8 : nits #

Patch Set 9 : rebase for storage_api #

Unified diffs Side-by-side diffs Delta from patch set Stats (+177 lines, -332 lines) Patch
D chrome/browser/extensions/api/api_function.h View 1 chunk +0 lines, -69 lines 0 comments Download
D chrome/browser/extensions/api/api_function.cc View 1 chunk +0 lines, -79 lines 0 comments Download
M chrome/browser/extensions/api/bluetooth/bluetooth_api.h View 1 2 3 4 5 6 5 chunks +10 lines, -5 lines 0 comments Download
M chrome/browser/extensions/api/bluetooth/bluetooth_api.cc View 1 2 3 4 5 6 15 chunks +30 lines, -29 lines 0 comments Download
M chrome/browser/extensions/api/bluetooth/bluetooth_event_router.h View 3 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/bluetooth/bluetooth_event_router.cc View 1 2 3 5 chunks +14 lines, -10 lines 0 comments Download
M chrome/browser/extensions/api/bluetooth/bluetooth_extension_function.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/bluetooth/bluetooth_extension_function.cc View 1 2 3 4 3 chunks +10 lines, -11 lines 0 comments Download
M chrome/browser/extensions/api/braille_display_private/braille_display_private_api.h View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/cast_channel/cast_channel_api.h View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/extensions/api/cast_channel/cast_channel_api.cc View 1 2 4 3 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/diagnostics/diagnostics_api.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/dial/dial_api.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/dial/dial_api.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/dial/dial_api_factory.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/dial/dial_api_factory.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/dial/dial_apitest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/gcm/gcm_api.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/hid/hid_api.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/hid/hid_api.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/identity/identity_apitest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/notifications/notifications_api.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/notifications/notifications_api.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/serial/serial_api.h View 1 2 3 4 5 6 7 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/serial/serial_api.cc View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/socket/socket_api.h View 4 chunks +8 lines, -4 lines 0 comments Download
M chrome/browser/extensions/api/socket/socket_api.cc View 1 2 4 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/extensions/api/socket/socket_api_unittest.cc View 1 2 3 4 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/extensions/api/sockets_tcp/sockets_tcp_api.cc View 1 2 4 3 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/sockets_tcp/sockets_tcp_api_unittest.cc View 1 2 3 4 2 chunks +4 lines, -6 lines 0 comments Download
M chrome/browser/extensions/api/sockets_tcp/tcp_socket_event_dispatcher.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/sockets_tcp_server/sockets_tcp_server_api.cc View 1 2 4 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/sockets_tcp_server/sockets_tcp_server_api_unittest.cc View 1 2 3 4 2 chunks +8 lines, -11 lines 0 comments Download
M chrome/browser/extensions/api/sockets_tcp_server/tcp_server_socket_event_dispatcher.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/sockets_udp/sockets_udp_api.cc View 1 2 4 3 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/sockets_udp/sockets_udp_api_unittest.cc View 1 2 3 4 2 chunks +4 lines, -6 lines 0 comments Download
M chrome/browser/extensions/api/sockets_udp/udp_socket_event_dispatcher.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/storage/storage_api.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/usb/usb_api.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/usb/usb_api.cc View 1 2 3 4 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/extensions/extension_function_dispatcher.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_function_test_utils.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 5 6 1 chunk +0 lines, -2 lines 0 comments Download
A + extensions/browser/api/async_api_function.h View 1 2 chunks +6 lines, -15 lines 0 comments Download
A + extensions/browser/api/async_api_function.cc View 1 4 chunks +14 lines, -25 lines 0 comments Download
M extensions/browser/extension_function.h View 1 1 chunk +4 lines, -2 lines 0 comments Download
M extensions/extensions.gyp View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
Ken Rockot(use gerrit already)
This should help a few APIs move out, including sockets.*
6 years, 10 months ago (2014-02-26 01:38:36 UTC) #1
James Cook
LGTM with nits, but you might want to run it by someone with more familiarity ...
6 years, 10 months ago (2014-02-26 17:57:21 UTC) #2
Ken Rockot(use gerrit already)
I spoke with kalman@ about it offline and I think this is good. Adding yoz@ ...
6 years, 10 months ago (2014-02-26 18:20:44 UTC) #3
Ken Rockot(use gerrit already)
OK, I've rebased since yoz@'s change landed.
6 years, 10 months ago (2014-02-26 19:06:01 UTC) #4
Yoyo Zhou
https://codereview.chromium.org/177003015/diff/1/chrome/browser/extensions/api/bluetooth/bluetooth_event_router.cc File chrome/browser/extensions/api/bluetooth/bluetooth_event_router.cc (right): https://codereview.chromium.org/177003015/diff/1/chrome/browser/extensions/api/bluetooth/bluetooth_event_router.cc#newcode46 chrome/browser/extensions/api/bluetooth/bluetooth_event_router.cc:46: ExtensionBluetoothEventRouter::ExtensionBluetoothEventRouter( On 2014/02/26 18:20:44, Ken Rockot wrote: > On ...
6 years, 9 months ago (2014-02-27 00:08:51 UTC) #5
Yoyo Zhou
On 2014/02/27 00:08:51, Yoyo Zhou wrote: > https://codereview.chromium.org/177003015/diff/1/chrome/browser/extensions/api/bluetooth/bluetooth_event_router.cc > File chrome/browser/extensions/api/bluetooth/bluetooth_event_router.cc (right): > > https://codereview.chromium.org/177003015/diff/1/chrome/browser/extensions/api/bluetooth/bluetooth_event_router.cc#newcode46 ...
6 years, 9 months ago (2014-02-27 00:11:58 UTC) #6
Ken Rockot(use gerrit already)
On 2014/02/27 00:11:58, Yoyo Zhou wrote: > On 2014/02/27 00:08:51, Yoyo Zhou wrote: > > ...
6 years, 9 months ago (2014-02-27 22:01:50 UTC) #7
James Cook
Another quick read, still LGTM https://codereview.chromium.org/177003015/diff/120001/extensions/browser/extension_function.h File extensions/browser/extension_function.h (right): https://codereview.chromium.org/177003015/diff/120001/extensions/browser/extension_function.h#newcode308 extensions/browser/extension_function.h:308: content::BrowserContext* browser_context() const { ...
6 years, 9 months ago (2014-02-27 22:16:00 UTC) #8
Yoyo Zhou
LGTM https://codereview.chromium.org/177003015/diff/120001/chrome/browser/extensions/api/dial/dial_api_factory.h File chrome/browser/extensions/api/dial/dial_api_factory.h (right): https://codereview.chromium.org/177003015/diff/120001/chrome/browser/extensions/api/dial/dial_api_factory.h#newcode18 chrome/browser/extensions/api/dial/dial_api_factory.h:18: content::BrowserContext* profile); nit: context https://codereview.chromium.org/177003015/diff/120001/chrome/browser/extensions/api/serial/serial_api.h File chrome/browser/extensions/api/serial/serial_api.h (right): ...
6 years, 9 months ago (2014-02-27 23:53:45 UTC) #9
Ken Rockot(use gerrit already)
The CQ bit was checked by rockot@chromium.org
6 years, 9 months ago (2014-02-28 00:00:31 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rockot@chromium.org/177003015/140001
6 years, 9 months ago (2014-02-28 00:03:46 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-02-28 00:45:48 UTC) #12
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) app_list_unittests, ash_unittests, aura_unittests, cacheinvalidation_unittests, cc_unittests, check_deps, ...
6 years, 9 months ago (2014-02-28 00:45:48 UTC) #13
Ken Rockot(use gerrit already)
The CQ bit was checked by rockot@chromium.org
6 years, 9 months ago (2014-02-28 01:33:27 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rockot@chromium.org/177003015/160001
6 years, 9 months ago (2014-02-28 01:34:20 UTC) #15
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-02-28 02:39:59 UTC) #16
commit-bot: I haz the power
Retried try job too often on win_x64_rel for step(s) base_unittests, chrome_elf_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_x64_rel&number=79950
6 years, 9 months ago (2014-02-28 02:40:00 UTC) #17
Ken Rockot(use gerrit already)
The CQ bit was checked by rockot@chromium.org
6 years, 9 months ago (2014-02-28 03:03:48 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rockot@chromium.org/177003015/160001
6 years, 9 months ago (2014-02-28 03:03:58 UTC) #19
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-02-28 03:57:15 UTC) #20
commit-bot: I haz the power
Retried try job too often on win_x64_rel for step(s) base_unittests, chrome_elf_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_x64_rel&number=80006
6 years, 9 months ago (2014-02-28 03:57:15 UTC) #21
James Cook
The CQ bit was checked by jamescook@chromium.org
6 years, 9 months ago (2014-02-28 04:15:35 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rockot@chromium.org/177003015/160001
6 years, 9 months ago (2014-02-28 04:15:40 UTC) #23
commit-bot: I haz the power
6 years, 9 months ago (2014-02-28 15:06:48 UTC) #24
Message was sent while issue was closed.
Change committed as 254113

Powered by Google App Engine
This is Rietveld 408576698