| Code-Review | +1 |
non-OWNERS LGTM. I probably caused merge conflicts for you 😐
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
alexrudenko@ adding you because of content/browser/devtools/protocol/network_handler.cc changes.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
kPreProvisionedKeyNotFound = 88,Lucas Santosmojo enum additions lgtm.
marking as `Resolved`.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
kInvalidPreProvisionedKeyProviderKeyMissing = 84,Looking at https://crrev.com/c/8031426, the presence of provider_key is a precondition for calling `FindPreProvisionedKey()` and initiating the SSO pre-provisioned key flow. So it looks like this error is impossible to trigger.
Moreover, the presence of provider_key requires provider_url to be present as well. If this condition isn't satisfied, the header parsing will fail earlier [1]
So it feels like `FindPreProvisionedKey()` should do `CHECK(param.provider_key()); CHECK(param.provider_url())` instead of returning these errors.
<histogram name="Net.DeviceBoundSessions.ProviderKeyMatchOutcome"Please add a histogram and documentation in the same CL. It looks like the histogram addition can be made in a follow-up CL.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Looking at https://crrev.com/c/8031426, the presence of provider_key is a precondition for calling `FindPreProvisionedKey()` and initiating the SSO pre-provisioned key flow. So it looks like this error is impossible to trigger.
Moreover, the presence of provider_key requires provider_url to be present as well. If this condition isn't satisfied, the header parsing will fail earlier [1]
So it feels like `FindPreProvisionedKey()` should do `CHECK(param.provider_key()); CHECK(param.provider_url())` instead of returning these errors.
Nice catch, thanks! Done.
<histogram name="Net.DeviceBoundSessions.ProviderKeyMatchOutcome"Please add a histogram and documentation in the same CL. It looks like the histogram addition can be made in a follow-up CL.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
LGTM, thanks!
P.S. It seems like you need to resolve a merge conflict before this CL can be submitted.
Pull latest commits, rebase your CL on top of a new HEAD (resolving the conflicts along the way), and then re-upload it.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |