This change will be blocked from submission as there are files which do not meet the coverage criteria. Following files have incremental coverage(all tests) < 70%.
Please add tests for uncovered lines, or add Low-Coverage-Reason:<reason> in the change description to bypass. See https://bit.ly/46jhjS9 to understand when it is okay to bypass. If you think coverage is underreported, file a bug at https://bit.ly/3ENM7Pe
Code-Coverage | -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 |
one question, as this giant `&&` is getting pretty large
!config->iph_title.empty() && !config->iph_image_name.empty() &&
I wonder if we want to start factoring out some of these into helper functions (maybe in `contextual_panel_item_configuration.h`) like "allows IPH" or something like that.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. | Gerrit |
one question, as this giant `&&` is getting pretty large
yeah that's fair
!config->iph_title.empty() && !config->iph_image_name.empty() &&
I wonder if we want to start factoring out some of these into helper functions (maybe in `contextual_panel_item_configuration.h`) like "allows IPH" or something like that.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. | Gerrit |
This change will be blocked from submission as there are files which do not meet the coverage criteria. Following files have incremental coverage(all tests) < 70%.
Please add tests for uncovered lines, or add Low-Coverage-Reason:<reason> in the change description to bypass. See https://bit.ly/46jhjS9 to understand when it is okay to bypass. If you think coverage is underreported, file a bug at https://bit.ly/3ENM7Pe
Code-Coverage | -1 |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. | Gerrit |
PTAL as `i/c/b/browser_view/ui_bundled` and `i/c/b/s/public/commands` owner. thanks!
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. | Gerrit |
This change will be blocked from submission as there are files which do not meet the coverage criteria. Following files have incremental coverage(all tests) < 70%.
Please add tests for uncovered lines, or add Low-Coverage-Reason:<reason> in the change description to bypass. See https://bit.ly/46jhjS9 to understand when it is okay to bypass. If you think coverage is underreported, file a bug at https://bit.ly/3ENM7Pe
Code-Coverage | -1 |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. | Gerrit |
contextualPanelEntrypointIPHDidDismissWithFeature:*config->iph_feature
This will crash if `config.get()` returns null. Need to handle that case.
[UIImage imageNamed:base::SysUTF8ToNSString(config->iph_image_name)];
Probably `CHECK(config)` at the beginning of the method. And then store a ref to it.
Maybe using
ContextualPanelItemConfiguration& config_ref = CHECK_DEREF(config.get());
Because calling `.get()` or `operator ->()` on a WeakPtr is more expensive than just a deref (WeakPtr is implemented with multiple pointers, a refcounted object, ...).
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. | Gerrit |
contextualPanelEntrypointIPHDidDismissWithFeature:*config->iph_feature
This will crash if `config.get()` returns null. Need to handle that case.
yeah that's fair. we check it before calling this method but you're right technically it can change between the two. Thanks Sylvain! Done.
[UIImage imageNamed:base::SysUTF8ToNSString(config->iph_image_name)];
Probably `CHECK(config)` at the beginning of the method. And then store a ref to it.
Maybe using
ContextualPanelItemConfiguration& config_ref = CHECK_DEREF(config.get());Because calling `.get()` or `operator ->()` on a WeakPtr is more expensive than just a deref (WeakPtr is implemented with multiple pointers, a refcounted object, ...).
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. | Gerrit |
This change will be blocked from submission as there are files which do not meet the coverage criteria. Following files have incremental coverage(all tests) < 70%.
Please add tests for uncovered lines, or add Low-Coverage-Reason:<reason> in the change description to bypass. See https://bit.ly/46jhjS9 to understand when it is okay to bypass. If you think coverage is underreported, file a bug at https://bit.ly/3ENM7Pe
Code-Coverage | -1 |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. | Gerrit |