-
Notifications
You must be signed in to change notification settings - Fork 892
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate away from content::WebUI::RegisterDeprecatedMessageCallback()
This is the second part of the migration started with the upgrade to Chromium 95.0.4628.3, which actually removes any usage of this method and replaces it with RegisterMessageCallback() + the proper callbacks. Chromium change: https://source.chromium.org/chromium/chromium/src/+/720e8acd2ca08ea8579b7d4438fe1a15cd577d2c commit 720e8acd2ca08ea8579b7d4438fe1a15cd577d2c Author: cammie <cammie@chromium.org> Date: Wed Aug 25 19:15:45 2021 +0000 Code Health: Rename/replace content::WebUI::RegisterMessageCallback(). Special thanks to thestig@chromium.org for writing the original version of this patch at https://crrev.com/c/2496505. This CL renames the original RegisterMessageCallback() as RegisterDeprecatedMessageCallback() and adds a new version of RegisterMessageCallback() that passes a base::Value::ConstListView in the callback instead of const base::ListValue*, as base::ListValue is now deprecated. Most of the many callsites of the original RegisterMessageCallback() are converted to use RegisterDeprecatedMessageCallback() for the moment so that the migration to the new RegisterMessageCallback() can be split into future CLs (with tracking bug https://crbug.com/1243386). We do, however, use the new API in a couple spots (chrome/browser/ui/webui/crashes_ui.cc and chrome/browser/ui/webui/settings/chromeos/ambient_mode_handler.cc) to show that it works. We also update the examples for RegisterMessageCallback in docs/webui_explainer.md and docs/webui_in_components.md. AX-Relnotes: N/A. Bug: 1142540,1187062,1243386
- Loading branch information
Showing
26 changed files
with
1,020 additions
and
1,142 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
Oops, something went wrong.