Reland "Refactor ExternalWebAppManager config loading flow"
This is a reland of 02f9f701 The original change uncovered an incompatibility with the test profile generated by AccountManagerUIHandlerTest and chromeos::ProfileHelper::IsPrimaryProfile(). This change uncovered it by changing the timing of when it gets called resulting in flaky failures. The AccountManagerUIHandlerTest tests were disabled in the meantime due to flakiness. A follow up CL re-enables the tests and disables the ExternalWebAppManager start up flow such that it doesn't trigger the incompatibility with the custom test profile: https://chromium-review.googlesource.com/c/chromium/src/+/2434412 Original change's description: > Refactor ExternalWebAppManager config loading flow > > This CL splits ExternalWebAppManager's config loading flow into discrete > steps and removes the various testing entry points that omit or > duplicate logic used by the real thing. > > Tests can now inject data (file_utils, config_dir, configs) into the > config loading pipeline instead of having separate mini pipelines just > for them. > > This change is in preparation for adding a new "FilterExtensionIds" step > to the config loading flow. Without this refactor there would be > duplication of logic between real and test code code paths that would be > prone to bitrot and missing real coverage. > > Bug: 1128801 > Change-Id: Ie5e87b26ab47782fab6589a4127df3ea5e876fec > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2423823 > Reviewed-by: Devlin <rdevlin.cronin@chromium.org> > Reviewed-by: Glen Robertson <glenrob@chromium.org> > Commit-Queue: Alan Cutter <alancutter@chromium.org> > Cr-Commit-Position: refs/heads/master@{#810025} Bug: 1128801 Change-Id: I345ea879861dd62ee38f4e04a72b968f38e2bb15 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2428539Reviewed-by:Glen Robertson <glenrob@chromium.org> Commit-Queue: Alan Cutter <alancutter@chromium.org> Auto-Submit: Alan Cutter <alancutter@chromium.org> Cr-Commit-Position: refs/heads/master@{#811174}
Showing
This diff is collapsed.
This diff is collapsed.
File moved
File moved
File moved
File moved
File moved
Please register or sign in to comment