[iOS] Build testing factories before profile initialization
On iOS the testing factories are built after initialization, which causes their re-creation. This causes crashes because the destruction happens in a random order and doesn't follow the dependencies. The fix is to add the testing factories before initialization, so that factories are not destroyed. This crash does not happen now, but prevents adding more factories that return true in ServiceIsCreatedWithBrowserState(). Change-Id: I6603ff6cbfecff645b23d879693e6524c7074c0e Reviewed-on: https://chromium-review.googlesource.com/c/1353943 Commit-Queue: David Roger <droger@chromium.org> Reviewed-by:Sylvain Defresne <sdefresne@chromium.org> Cr-Commit-Position: refs/heads/master@{#612163}
Showing
Please register or sign in to comment