Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: use ipcMainUtils.invokeInWebContents / ipcRendererUtils.handle helpers for Chrome APIs #17417

Merged
merged 1 commit into from
Mar 26, 2019

Conversation

miniak
Copy link
Contributor

@miniak miniak commented Mar 16, 2019

Description of Change

Eliminates duplicate code patterns for handling async IPCs with responses. Tests covering the refactored APIs have been added in #17422.

Checklist

  • PR description included and stakeholders cc'd
  • npm test passes
  • PR title follows semantic commit guidelines

Release Notes

Notes: no-notes

@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Mar 16, 2019
@miniak miniak force-pushed the miniak/refactor-chrome-api branch 5 times, most recently from bc70f68 to f3df95a Compare March 16, 2019 15:35
@miniak miniak changed the base branch from master to miniak/invoke-webcontents-validation March 16, 2019 15:40
@miniak miniak changed the title Miniak/refactor chrome api refactor: use ipcMainUtils.invokeInWebContents / ipcRendererUtils.handle helpers for Chrome APIs Mar 16, 2019
@miniak miniak force-pushed the miniak/refactor-chrome-api branch 2 times, most recently from e7386c2 to 9572f93 Compare March 16, 2019 16:16
@miniak miniak force-pushed the miniak/invoke-webcontents-validation branch from 38515c1 to 8f80e7c Compare March 16, 2019 16:24
@miniak miniak force-pushed the miniak/refactor-chrome-api branch from 9572f93 to b7c1b0e Compare March 16, 2019 16:25
@miniak miniak self-assigned this Mar 16, 2019
@miniak miniak force-pushed the miniak/refactor-chrome-api branch 4 times, most recently from 5d5177e to a494734 Compare March 17, 2019 00:22
@miniak miniak changed the base branch from miniak/invoke-webcontents-validation to miniak/fix-chrome-api March 17, 2019 00:26
@miniak miniak force-pushed the miniak/fix-chrome-api branch 3 times, most recently from a946ba0 to 880b214 Compare March 17, 2019 01:02
@miniak miniak force-pushed the miniak/refactor-chrome-api branch from a494734 to 5bf21ee Compare March 17, 2019 01:08
@miniak miniak force-pushed the miniak/refactor-chrome-api branch from 5bf21ee to b44344e Compare March 17, 2019 01:52
@miniak miniak force-pushed the miniak/refactor-chrome-api branch from b44344e to 0af66df Compare March 17, 2019 09:07
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Mar 17, 2019
@miniak miniak force-pushed the miniak/fix-chrome-api branch 2 times, most recently from cfadefa to 2bee62c Compare March 18, 2019 21:28
@miniak miniak force-pushed the miniak/refactor-chrome-api branch from 0af66df to 40ca8c1 Compare March 19, 2019 19:32
@miniak miniak changed the base branch from miniak/fix-chrome-api to master March 19, 2019 19:32
@miniak miniak force-pushed the miniak/refactor-chrome-api branch from 40ca8c1 to 21563d1 Compare March 19, 2019 20:00
@miniak miniak force-pushed the miniak/refactor-chrome-api branch from 21563d1 to cdd3971 Compare March 19, 2019 22:01
@miniak miniak marked this pull request as ready for review March 19, 2019 22:05
@miniak
Copy link
Contributor Author

miniak commented Mar 19, 2019

@samuelmaddock, your full Chromium extension support PR will probably eliminate this code, but I would still like to improve it in the meantime.

@zcbenz zcbenz merged commit 336db33 into master Mar 26, 2019
@release-clerk
Copy link

release-clerk bot commented Mar 26, 2019

No Release Notes

@zcbenz zcbenz deleted the miniak/refactor-chrome-api branch March 26, 2019 02:38
Copy link
Member

@samuelmaddock samuelmaddock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, I didn't get to it before @zcbenz, but the changes look clean. 👍

kiku-jw pushed a commit to kiku-jw/electron that referenced this pull request May 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants