| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
CreateNavigationData(navigation_handle, /*used_bfcache=*/true);`has_restored_from_bfcache_` was never reset previously, but currently `navigation_data_` can be reset and `used_bfcache` can be overridden, is this intended?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
std::unique_ptr<NavigationData> navigation_data_;How about using `std::optional` instead?
How about using `std::optional` instead?
Unboxed. Thanks!
CreateNavigationData(navigation_handle, /*used_bfcache=*/true);`has_restored_from_bfcache_` was never reset previously, but currently `navigation_data_` can be reset and `used_bfcache` can be overridden, is this intended?
Yes, intended. `has_restored_from_bfcache_` is a predicate for PLMO, but what we actually need is `the nav used bfcache or not`. Revised version is more straitforward.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
NavigationData CreateNavigationData(maybe we can make this a static function?
std::move(corrected), navigation_data_->navigation_initiator_string,nit: maybe we can omit `std::move` for base::Time*
https://source.chromium.org/chromium/chromium/src/+/main:base/time/time.h;l=24-25?q=base::TimeDelta
CreateNavigationData(navigation_handle, /*used_bfcache=*/true);Ken Okada`has_restored_from_bfcache_` was never reset previously, but currently `navigation_data_` can be reset and `used_bfcache` can be overridden, is this intended?
Yes, intended. `has_restored_from_bfcache_` is a predicate for PLMO, but what we actually need is `the nav used bfcache or not`. Revised version is more straitforward.
| 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. |
maybe we can make this a static function?
Done
std::move(corrected), navigation_data_->navigation_initiator_string,nit: maybe we can omit `std::move` for base::Time*
https://source.chromium.org/chromium/chromium/src/+/main:base/time/time.h;l=24-25?q=base::TimeDelta
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
10 is the latest approved patch-set.
The change was submitted with unreviewed changes in the following files:
```
The name of the file: components/page_load_metrics/browser/observers/preload_serving_metrics_page_load_metrics_observer.h
Insertions: 1, Deletions: 1.
The diff is too large to show. Please review the diff.
```
```
The name of the file: components/page_load_metrics/browser/observers/preload_serving_metrics_page_load_metrics_observer.cc
Insertions: 22, Deletions: 1.
The diff is too large to show. Please review the diff.
```
PreloadServingMetrics: Group navigation data in PreloadServingMetricsPLMO
This is a preparation of https://crrev.com/c/8255995.
This CL introduces `NavigationData` in
`PreloadServingMetricsPageLoadMetricsObserver`, which holds data of
navigation, for ease of lifecycle management.
TAG=agy
CONV=5d71549e-0061-42b8-a2c5-9289dcd6183d
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |