forked from Pissandshittium/pissandshittium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The settings utility function BlockToOpenURL returns a block which accepts a URL parameter and then opens it. All of the dependencies for this logic are injected into the utility. It was used in four places, and in three of them, the block was immediately invoked, so it was just a complicated way of calling a function. That utility function is removed in this CL, and call sites just directly open the URL using the same two lines of code that would be executed in the block. For the one case where the block was used in a completion handler, it's now encapsulated in a method call. Since this was the only method in the settings_utils file, that file is removed. Change-Id: If80c18bd00953013fbfa24afc05d24d2b29c2c7b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4895671 Reviewed-by: Gauthier Ambard <gambard@chromium.org> Commit-Queue: Mark Cogan <marq@chromium.org> Cr-Commit-Position: refs/heads/main@{#1202604}
- Loading branch information
Showing
6 changed files
with
18 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.