blink::mojom::FetchClientSettingsObjectPtr GetFetchClientSettingsObject() {
auto fetch_client_settings_object =
blink::mojom::FetchClientSettingsObject::New();
fetch_client_settings_object->policy_container_policies =
blink::mojom::PolicyContainerPolicies::New();
return fetch_client_settings_object;
}How about renaming this to `GetEmptyFetchClientSettingsObject()` and moving it to somewhere (content/browser/loader/ ?) as a common helper function so that both tests and production code can use it?
DCHECK(outside_fetch_client_settings_object_);Can you change this to CHECK as well?
DCHECK(outside_fetch_client_settings_object_);Ditto.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
blink::mojom::FetchClientSettingsObjectPtr GetFetchClientSettingsObject() {
auto fetch_client_settings_object =
blink::mojom::FetchClientSettingsObject::New();
fetch_client_settings_object->policy_container_policies =
blink::mojom::PolicyContainerPolicies::New();
return fetch_client_settings_object;
}How about renaming this to `GetEmptyFetchClientSettingsObject()` and moving it to somewhere (content/browser/loader/ ?) as a common helper function so that both tests and production code can use it?
Done, but only for tests. I don't think this is useful for production code, which is always supposed to fill in the referrer.
Can you change this to CHECK as well?
Done
DCHECK(outside_fetch_client_settings_object_);Antonio SartoriDitto.
Done
| 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. |
| 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. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |