Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(504)

Issue 11088044: Remove deprecated function. (Closed)

Created:
8 years, 2 months ago by miket_OOO
Modified:
8 years, 2 months ago
CC:
chromium-reviews, Aaron Boodman, mihaip-chromium-reviews_chromium.org
Visibility:
Public.

Description

1. Create ApiFunction, which is a new base class of AsyncApiFunction that is intended to do all its work on the UI thread. Motivation is Notification API. 2. While refactoring AsyncApiFunction, get rid of DeprecatedExtractSrcId(). 3. Notice that in the process of migrating usb_api.cc to the non-deprecated ExtractSrcId(), USB tests broke. Wonder why that is, because the new code is exactly like Socket/Serial's usage of ExtractSrcId(). 4. Realize that Socket/Serial have stopped using ApiResourceEventNotifier long, long ago (probably when Peng refactored the callback design), and that ExtractSrcId() broke when Antony and I refactored the JSON compiler into the IDL compiler (by which point nobody was using ExtractSrcId() anymore). It's also possible that I cargo-culted my own code from Socket into Serial, where it languished unused. 5. After discussion with Antony, fix ExtractSrcId() by making srcId explicit in the IDL. 6. Remove all traces of src_id and event_notifier in serial/socket. 7. Remove the original introduction of ApiFunction and submit this CL on its own. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=161237

Patch Set 1 #

Total comments: 1

Patch Set 2 : Anto-nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -143 lines) Patch
M chrome/browser/extensions/api/api_function.h View 1 2 chunks +1 line, -7 lines 0 comments Download
M chrome/browser/extensions/api/api_function.cc View 1 2 chunks +3 lines, -18 lines 0 comments Download
M chrome/browser/extensions/api/serial/serial_api.h View 2 chunks +1 line, -7 lines 0 comments Download
M chrome/browser/extensions/api/serial/serial_api.cc View 4 chunks +4 lines, -12 lines 0 comments Download
M chrome/browser/extensions/api/serial/serial_apitest.cc View 3 chunks +4 lines, -8 lines 0 comments Download
M chrome/browser/extensions/api/serial/serial_connection.h View 1 chunk +1 line, -4 lines 0 comments Download
M chrome/browser/extensions/api/serial/serial_connection.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/socket/socket.h View 1 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/extensions/api/socket/socket.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/extensions/api/socket/socket_api.h View 2 chunks +0 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/socket/socket_api.cc View 3 chunks +4 lines, -14 lines 0 comments Download
M chrome/browser/extensions/api/socket/tcp_socket.h View 1 2 chunks +2 lines, -7 lines 0 comments Download
M chrome/browser/extensions/api/socket/tcp_socket.cc View 4 chunks +6 lines, -10 lines 0 comments Download
M chrome/browser/extensions/api/socket/tcp_socket_unittest.cc View 8 chunks +6 lines, -34 lines 0 comments Download
M chrome/browser/extensions/api/socket/udp_socket.h View 1 1 chunk +1 line, -4 lines 0 comments Download
M chrome/browser/extensions/api/socket/udp_socket.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/extensions/api/socket/udp_socket_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/usb/usb_api.cc View 1 chunk +4 lines, -1 line 0 comments Download
M chrome/common/extensions/api/experimental_notification.idl View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/experimental_usb.idl View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
miket_OOO
8 years, 2 months ago (2012-10-10 16:16:19 UTC) #1
bryeung
Looks like a great simplification. usb changes lgtm
8 years, 2 months ago (2012-10-10 18:15:42 UTC) #2
asargent_no_longer_on_chrome
LGTM w/ 1 nit http://codereview.chromium.org/11088044/diff/1/chrome/browser/extensions/api/api_function.h File chrome/browser/extensions/api/api_function.h (right): http://codereview.chromium.org/11088044/diff/1/chrome/browser/extensions/api/api_function.h#newcode15 chrome/browser/extensions/api/api_function.h:15: class ApiFunction : public UIThreadExtensionFunction ...
8 years, 2 months ago (2012-10-10 21:28:59 UTC) #3
Mihai Parparita -not on Chrome
On Wed, Oct 10, 2012 at 2:29 PM, <[email protected]> wrote: > http://codereview.chromium.**org/11088044/diff/1/chrome/** > browser/extensions/api/api_**function.h#newcode15<http://codereview.chromium.org/11088044/diff/1/chrome/browser/extensions/api/api_function.h#newcode15> > ...
8 years, 2 months ago (2012-10-10 21:33:11 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/11088044/4002
8 years, 2 months ago (2012-10-10 21:59:35 UTC) #5
commit-bot: I haz the power
Commit queue rejected this change because the description was changed between the time the change ...
8 years, 2 months ago (2012-10-11 00:03:42 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/11088044/4002
8 years, 2 months ago (2012-10-11 00:05:55 UTC) #7
commit-bot: I haz the power
Change committed as 161237
8 years, 2 months ago (2012-10-11 00:06:25 UTC) #8
miket_OOO
8 years, 2 months ago (2012-10-11 16:26:36 UTC) #9
On 2012/10/11 00:06:25, I haz the power (commit-bot) wrote:
> Change committed as 161237

Thanks for watching this, Mihai. The behavior is much better than it used to be,
when it would re-run all the try jobs, regardless of greenness.

Powered by Google App Engine
This is Rietveld 408576698