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

Issue 10703111: Cleanup: make ExtensionRequestSender manage its IPC responses directly, rather (Closed)

Created:
8 years, 5 months ago by not at google - send to devlin
Modified:
8 years, 5 months ago
CC:
chromium-reviews, Aaron Boodman, mihaip-chromium-reviews_chromium.org, darin-cc_chromium.org, brettw-cc_chromium.org, benwells, koz (OOO until 15th September)
Visibility:
Public.

Description

Cleanup: make ExtensionRequestSender manage its IPC responses directly, rather than going via ExtensionHelper and ExtensionDispatcher. Also make it generate its request IDs internally. A cleanup that leads from this is making ExtensionMsg_Reponse a CONTROL message rather than ROUTED, simplifying some browser-side code. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=145642

Patch Set 1 #

Patch Set 2 : ScopedObserverify #

Total comments: 2

Patch Set 3 : thread through the RenderThread #

Patch Set 4 : all i needed to do was construct it in the right order #

Patch Set 5 : revert sceopd_observer change #

Unified diffs Side-by-side diffs Delta from patch set Stats (+122 lines, -141 lines) Patch
M chrome/browser/extensions/extension_function.h View 3 chunks +1 line, -6 lines 0 comments Download
M chrome/browser/extensions/extension_function.cc View 4 chunks +3 lines, -7 lines 0 comments Download
M chrome/browser/extensions/extension_function_dispatcher.h View 2 chunks +2 lines, -6 lines 0 comments Download
M chrome/browser/extensions/extension_function_dispatcher.cc View 7 chunks +12 lines, -13 lines 0 comments Download
M chrome/browser/renderer_host/chrome_render_message_filter.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/extensions/extension_messages.h View 1 chunk +5 lines, -5 lines 0 comments Download
M chrome/renderer/extensions/extension_dispatcher.h View 3 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/renderer/extensions/extension_dispatcher.cc View 3 1 chunk +0 lines, -7 lines 0 comments Download
M chrome/renderer/extensions/extension_helper.h View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/renderer/extensions/extension_helper.cc View 2 chunks +0 lines, -11 lines 0 comments Download
M chrome/renderer/extensions/extension_request_sender.h View 1 3 2 chunks +36 lines, -19 lines 0 comments Download
M chrome/renderer/extensions/extension_request_sender.cc View 1 2 3 5 chunks +33 lines, -17 lines 0 comments Download
M chrome/renderer/extensions/send_request_natives.cc View 2 chunks +9 lines, -20 lines 0 comments Download
M chrome/renderer/extensions/set_icon_natives.cc View 1 chunk +7 lines, -12 lines 0 comments Download
M chrome/renderer/resources/extensions/send_request.js View 1 chunk +9 lines, -7 lines 0 comments Download
M chrome/test/base/chrome_render_view_test.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/base/chrome_render_view_test.cc View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
koz (OOO until 15th September)
http://codereview.chromium.org/10703111/diff/2003/chrome/renderer/resources/extensions/send_request.js File chrome/renderer/resources/extensions/send_request.js (right): http://codereview.chromium.org/10703111/diff/2003/chrome/renderer/resources/extensions/send_request.js#newcode118 chrome/renderer/resources/extensions/send_request.js:118: var requestId = nativeFunction(functionName, set_icon.js provides a nativeFunction() to ...
8 years, 5 months ago (2012-07-09 01:12:37 UTC) #1
not at google - send to devlin
http://codereview.chromium.org/10703111/diff/2003/chrome/renderer/resources/extensions/send_request.js File chrome/renderer/resources/extensions/send_request.js (right): http://codereview.chromium.org/10703111/diff/2003/chrome/renderer/resources/extensions/send_request.js#newcode118 chrome/renderer/resources/extensions/send_request.js:118: var requestId = nativeFunction(functionName, On 2012/07/09 01:12:37, koz wrote: ...
8 years, 5 months ago (2012-07-09 02:04:16 UTC) #2
koz (OOO until 15th September)
lgtm
8 years, 5 months ago (2012-07-09 02:18:12 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/10703111/4002
8 years, 5 months ago (2012-07-09 02:37:50 UTC) #4
commit-bot: I haz the power
Change committed as 145642
8 years, 5 months ago (2012-07-09 03:53:34 UTC) #5
cmp_google
Hi all, when this landed, it made some of our tests go red that use ...
8 years, 5 months ago (2012-07-09 21:18:50 UTC) #6
kalman_google
Ah, bummer. I didn't realise we did this. I guess the problem is that I ...
8 years, 5 months ago (2012-07-10 01:15:28 UTC) #7
cmp
8 years, 5 months ago (2012-07-12 21:07:31 UTC) #8
On 2012/07/10 01:15:28, kalman_google wrote:
> Anyway, what's the architecture of these tests? We... compile tests then
> run against the old binary, how does that work?

Right, the current Chrome build exposes the same IPC automation interface as the
reference Chrome build.  This works most of the time. :)  It happens more often
that we need a reference build update just because the IPC automation messages
change by itself.  It is less common that a new feature is added to Chrome that
changes something about what we test that requires a reference build update.

> I would ideally like to land this change, though it's just a cleanup.

If you want to do that and you're also willing to update the reference build
plus assist in rebaselining the perf_expectations.json file, let me know.

Powered by Google App Engine
This is Rietveld 408576698