Hey Nate and Scott, seems everyone's an owner of this file and I just need 2 pairs of committer eyeballs on this change... This merely adds logic to be able to map a V8 use counter to a WebDXFeature use counter in addition to the existing ability to map to a WebFeature use counter. There's now needs for that creeping up and we should have this in place...
Thanks!
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. | Gerrit |
Code-Review | +1 |
lgtm w/ comment
std::optional<WebDXFeature> webdx_feature;
nit: Since `webdx_feature` and `deprecated` are ignored if `blink_feature` is set,
you might want to add more CHECKs below (!deprecated in webdx arm, !webdx_feature in blink feature arm) to prevent misuse.
Alternatively, you could consider enforcing the mutual exclusion with `absl::variant`, something like:
```
struct BlinkFeature {
WebFeature web_feature;
bool deprecated;
};
absl::variant<absl::monostate, BlinkFeature, WebDXFeature> feature;
```
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. | Gerrit |
nit: Since `webdx_feature` and `deprecated` are ignored if `blink_feature` is set,
you might want to add more CHECKs below (!deprecated in webdx arm, !webdx_feature in blink feature arm) to prevent misuse.Alternatively, you could consider enforcing the mutual exclusion with `absl::variant`, something like:
```
struct BlinkFeature {
WebFeature web_feature;
bool deprecated;
};absl::variant<absl::monostate, BlinkFeature, WebDXFeature> feature;
```
Good point! I opted for the additional CHECKs in the patch set I just uploaded.
Cheers!
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. | Gerrit |
Code-Review | +1 |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. | Gerrit |
Hi, could you land this so I can do the V8 use counter related changes which depend on this? Thanks!
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. | Gerrit |
Code-Review | +1 |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. | Gerrit |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. | Gerrit |
Support mapping V8 use counters to WebDXFeature use counters.
This tweaks Blink's existing V8 callback for mapping V8 use counters to
Blink use counters to support the relatively new WebDXFeature use
counter type.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. | Gerrit |