Separating this out from issue 678949
When attempting to move DisplayConfigurationObserver to src/ash in https://chromium-review.googlesource.com/c/chromium/src/+/1003379, several unit tests break.
The root cause for the breakage is this logic in DisplayConfigurationObserver::OnTabletModeStarted():
display_manager->SetMirrorMode(display::MirrorMode::kNormal, base::nullopt);
display_manager->layout_store()->set_forced_mirror_mode(true);
This results in a single mirrored display instead of 2 displays, breaking test assumptions.
We can either:
a) Allow tests to configure Shell to not initialize DisplayConfigurationObserver
b) Modify the test expectations
a) is simpler but b) seems more robust.
Thoughts?
Comment 1 by steve...@chromium.org
, Apr 10 2018