| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
I assume this won't fail for the case where multiple features generate page context concurrently (e.g. base Helios and ZSS), since it's only if the same wrapper triggers extraction twice?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
I assume this won't fail for the case where multiple features generate page context concurrently (e.g. base Helios and ZSS), since it's only if the same wrapper triggers extraction twice?
correct, it's specifically to stop clients from doing the latter.
| 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. |
2 is the latest approved patch-set.
The change was submitted with unreviewed changes in the following files:
```
The name of the file: ios/chrome/browser/intelligence/proto_wrappers/page_context_wrapper.mm
Insertions: 1, Deletions: 1.
@@ -291,7 +291,7 @@
}
- (void)populatePageContextFieldsAsyncWithTimeout:(base::TimeDelta)timeout {
- CHECK(!_executionStarted);
+ CHECK(!_executionStarted) << "A PageContextWrapper should only be used once.";
_executionStarted = YES;
if (_isLowPriorityExtraction) {
```
[iOS] Make PageContextWrapper one time use by CHECKing on double extract
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |