base::SequencedTaskRunner::GetCurrentDefault()->PostDelayedTask(Justin Novosadshould we use a main controller low priority task instead of handling this here?
Thanks for mentioning this. I did not know it existed. I like that it ensures the spreading out of deferred startup tasks.
Done.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
[SafeModeCoordinator shouldStart] ||probably not for this CL:
I wonder how crash uploading works in safe mode.
It seems that safemode only checks crashpad reports [1]
Will the MetricKit report still be uploaded if they are received after safe mode starts?
!IsMetrickitDeferRegistrationEnabled()) {if you plan to do a start_active=false experiment, it may be better to test the flag earlier in the chain, to catch the safemode case in the experiment. Otherwise safe mode startup will be excluded.
I would probably even put the flag first here.
id subscriber_mock = [OCMockObject mockForClass:[MetricKitSubscriber class]];nit:
prefer using v3 syntax
OCMStrictClassMock([MetricKitSubscriber class]);
OCMStub(subscriber_mock).andReturn(...);
// Test that MetricKit registration happens immediately on user triggeredIs this a requirement?
If the user enable metrics in the 5 seconds of the session, is it critical to upload metrickit reports immediately or could they just be deferred?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |