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

Issue 2495213007: [Extensions] Use a separate IPC message for extension events (Closed)

Created:
4 years, 1 month ago by Devlin
Modified:
4 years, 1 month ago
Reviewers:
Tom Sepez, lazyboy
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, jbroman
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Extensions] Use a separate IPC message for extension events Currently, extension events are dispatched using the MessageInvoke IPC, which instructs the the renderer to invoke the JS methods to disptach the event. This has a few problems: - It reuses the invoke IPC when it really shouldn't. Looks like there's a long-standing TODO to change this. - It's incompatible if we ever change the way we want to dispatch events, as we are with the C++ bindings work. Migrate event dispatching to a separate IPC message, and remove the now-unneeded user gesture parameter from the MessageInvoke IPC. BUG=666004 BUG=653596 Committed: https://crrev.com/ff516ab47c3fe130da26006e0f677ee5a78a9f19 Cr-Commit-Position: refs/heads/master@{#432645}

Patch Set 1 #

Patch Set 2 : fixtests #

Patch Set 3 : more #

Total comments: 7

Patch Set 4 : lazyboys #

Unified diffs Side-by-side diffs Delta from patch set Stats (+163 lines, -130 lines) Patch
M chrome/browser/extensions/api/web_request/web_request_api_unittest.cc View 1 6 chunks +24 lines, -32 lines 0 comments Download
M extensions/browser/app_window/app_window_contents.cc View 2 chunks +6 lines, -6 lines 0 comments Download
M extensions/browser/event_router.cc View 1 chunk +8 lines, -20 lines 0 comments Download
M extensions/common/event_filtering_info.h View 2 chunks +2 lines, -3 lines 0 comments Download
M extensions/common/event_filtering_info.cc View 3 chunks +4 lines, -11 lines 0 comments Download
M extensions/common/extension_messages.h View 1 2 3 3 chunks +26 lines, -3 lines 0 comments Download
M extensions/renderer/dispatcher.h View 3 chunks +8 lines, -5 lines 0 comments Download
M extensions/renderer/dispatcher.cc View 1 2 3 7 chunks +81 lines, -43 lines 0 comments Download
M extensions/renderer/extension_frame_helper.h View 1 chunk +1 line, -2 lines 0 comments Download
M extensions/renderer/extension_frame_helper.cc View 1 chunk +3 lines, -5 lines 0 comments Download

Messages

Total messages: 30 (22 generated)
Devlin
lazyboy@, mind taking a look? +cc jbroman since it's somewhat related to the bindings work.
4 years, 1 month ago (2016-11-16 19:17:30 UTC) #15
lazyboy
lgtm with nits https://codereview.chromium.org/2495213007/diff/40001/extensions/browser/event_router.cc File extensions/browser/event_router.cc (left): https://codereview.chromium.org/2495213007/diff/40001/extensions/browser/event_router.cc#oldcode112 extensions/browser/event_router.cc:112: args.Set(3, new base::FundamentalValue(event_id)); Ah this was ...
4 years, 1 month ago (2016-11-16 20:21:02 UTC) #16
Devlin
https://codereview.chromium.org/2495213007/diff/40001/extensions/browser/event_router.cc File extensions/browser/event_router.cc (left): https://codereview.chromium.org/2495213007/diff/40001/extensions/browser/event_router.cc#oldcode112 extensions/browser/event_router.cc:112: args.Set(3, new base::FundamentalValue(event_id)); On 2016/11/16 20:21:02, lazyboy wrote: > ...
4 years, 1 month ago (2016-11-16 20:52:55 UTC) #17
Devlin
+Tom for the IPC messages.
4 years, 1 month ago (2016-11-16 20:54:12 UTC) #21
Tom Sepez
messages LGTM
4 years, 1 month ago (2016-11-16 21:12:19 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2495213007/60001
4 years, 1 month ago (2016-11-16 21:19:46 UTC) #26
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 1 month ago (2016-11-16 22:26:04 UTC) #28
commit-bot: I haz the power
4 years, 1 month ago (2016-11-16 22:34:34 UTC) #30
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/ff516ab47c3fe130da26006e0f677ee5a78a9f19
Cr-Commit-Position: refs/heads/master@{#432645}

Powered by Google App Engine
This is Rietveld 408576698