chromeos: shelf activation changes for mash
This changes how ExtensionAppWindowLauncherController watches for activation. ExtensionAppWindowLauncherController inherits activation watching from wm::ActivationChangeObserver. The ActivationChangeObserver is added to Shell's root window. This doesn't work for mash. This switches ExtensionAppWindowLauncherController to use a Widget observer. This works in both the mash and non-mash code. I did not promote this logic to AppWindowLauncherController as AppWindowLauncherController is also used for arc/crostini windows, which are created in ash and should continue to use AppWindowLauncherController (at least for the single-process-mash case). For multi-process-mash the arc/crostini launcher code likely does not work at all (because the windows are entirely created by ash) and will need more extensive changes. BUG=826386 TEST=covered by test Change-Id: If5f89d88f782ce452f10889da17210f41189dc77 Reviewed-on: https://chromium-review.googlesource.com/c/1306355Reviewed-by:Michael Wasserman <msw@chromium.org> Commit-Queue: Scott Violet <sky@chromium.org> Cr-Commit-Position: refs/heads/master@{#604397}
Showing
Please register or sign in to comment