| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
navigate_params.web_app_navigation_data =AI review: This assignment completely overwrites the `web_app_navigation_data` that was populated inside `create_nav_params()` (which sets `navigation_capturing_force_off = true`), effectively losing that setting.
Consider setting `launch_params` directly on the existing struct:
```cpp
if (!navigate_params.web_app_navigation_data) {
navigate_params.web_app_navigation_data = webapps::NavigationData();
}
navigate_params.web_app_navigation_data->launch_params = std::move(launch_params);
```
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
dmurph: please review components/webapps
tluk: please review chrome/
AI review: This assignment completely overwrites the `web_app_navigation_data` that was populated inside `create_nav_params()` (which sets `navigation_capturing_force_off = true`), effectively losing that setting.
Consider setting `launch_params` directly on the existing struct:
```cpp
if (!navigate_params.web_app_navigation_data) {
navigate_params.web_app_navigation_data = webapps::NavigationData();
}
navigate_params.web_app_navigation_data->launch_params = std::move(launch_params);
```
In this case `create_nav_params()` guarantees that `web_app_navigation_data`, so I'm `CHECK`ing it rather than doing the conditional.
Also updated web_app_launch_process.cc, since I couldn't immediately prove that it was safe from overwrite.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
struct NavigationData {nit: due to always regretting this, can you make this a class, and have setters & getters? it's annoying boilerplate, but really helps with future refactors.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |