-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Send ResponseInfo to callback handlers of network responses.
This also removes the redundant Service::ResponseCallback alias. Unfortunately, this change ripples far and wide. I considered trying to keep this localized to service_request_sender, but that would have other, even less desirable side effects, such as having to indicate which instances should record metrics and which should not. Also, it would force us to make certain assumptions about the lifetime of that class that we have not (and should not) make, such as whether a flow may use the same instance throughout or not. To avoid the same kind of ripple in the future, this CL introduces a ResponseInfo struct that is passed along all network responses. For now, it only contains what we need for the follow-up metrics, but adding more fields to the struct should be trivial in the future. Bug: b/201970915 Change-Id: I086bc75c712201978a31f8651707053cc88fba96 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3540721 Reviewed-by: Florian Gauger <fga@google.com> Commit-Queue: Clemens Arbesser <arbesser@google.com> Cr-Commit-Position: refs/heads/main@{#987891}
- Loading branch information
Clemens Arbesser
authored and
Chromium LUCI CQ
committed
Apr 1, 2022
1 parent
30c6aa6
commit d9de2f5
Showing
30 changed files
with
765 additions
and
434 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
117 changes: 76 additions & 41 deletions
117
components/autofill_assistant/browser/controller_unittest.cc
Large diffs are not rendered by default.
Oops, something went wrong.
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
Oops, something went wrong.