The EnterpriseStartupDialog needs to be an app modal dialog on Mac. So that it blocks the operation from dock and main menu.
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/d726f5f692deb80f1014bee46c49b26d693366c3 commit d726f5f692deb80f1014bee46c49b26d693366c3 Author: Owen Min <zmin@chromium.org> Date: Mon Jul 23 17:10:11 2018 Block dock and menu when EnterpriseStartupDialog displayed on Mac. Run the dialog modally on mac so that the dock and main menu are blocked. Bug: 865760 Change-Id: I734ba42a3110b6a71fa2aaae807ef9b1f763a90d Reviewed-on: https://chromium-review.googlesource.com/1135728 Commit-Queue: Owen Min <zmin@chromium.org> Reviewed-by: Trent Apted <tapted@chromium.org> Cr-Commit-Position: refs/heads/master@{#577194} [modify] https://crrev.com/d726f5f692deb80f1014bee46c49b26d693366c3/chrome/browser/ui/BUILD.gn [add] https://crrev.com/d726f5f692deb80f1014bee46c49b26d693366c3/chrome/browser/ui/views/policy/enterprise_startup_dialog_mac_util.h [add] https://crrev.com/d726f5f692deb80f1014bee46c49b26d693366c3/chrome/browser/ui/views/policy/enterprise_startup_dialog_mac_util.mm [modify] https://crrev.com/d726f5f692deb80f1014bee46c49b26d693366c3/chrome/browser/ui/views/policy/enterprise_startup_dialog_view.cc [modify] https://crrev.com/d726f5f692deb80f1014bee46c49b26d693366c3/chrome/browser/ui/views/policy/enterprise_startup_dialog_view.h [modify] https://crrev.com/d726f5f692deb80f1014bee46c49b26d693366c3/chrome/browser/ui/views/policy/enterprise_startup_dialog_view_browsertest.cc
Comment 1 by zmin@chromium.org
, Jul 19