Remove uses of BodyAsStringCallbackDeprecated (components/, pt. 1)
Updates multiple existing uses of the version of
SimpleURLLoader::DownloadToStringOfUnboundedSizeUntilCrashAndDie that
takes a BodyAsStringCallbackDeprecated to use the version that takes a
BodyAsStringCallback. This primarily involves updating the callback
function to accept a std::optional<std::string> instead of a
std::unique_ptr<std::string>. This CL touches the first half of the
components/ uses.
Bug: 40258809
Change-Id: Ic45635114ec85257bd7506c510b8bfe0655c7eeb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7169903
Commit-Queue: Andrew Williams <awillia@chromium.org>
Reviewed-by: Maks Orlovich <morlovich@chromium.org>
Owners-Override: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1549391}
NOKEYCHECK=True
GitOrigin-RevId: 460bab4c557005f9345d3ca8f029d80d2549efb7
2 files changed