Clean up Chrome OS System Dialogs |
||
Issue descriptionWe still have a few system dialogs in Chrome OS that do not use SystemWebDialogDelegate. Fixing this will allow us to clean up chrome_web_dialog_view.cc and make sure that system dialogs are handled consistently in Chrome OS. Known issues: * EnrollmentDialogView which is the sole consumer of SystemTrayClient::CreateUnownedDialogWidget, which replicates logic in chrome_web_dialog_view.cc. * SetTimeDialog * multidevice_setup_dialog.cc and assistant_optin_ui.cc call chrome::ShowWebDialogInContainer in similar but slightly different ways. We should standardize these.
,
Dec 10
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/70e4cc800a1c28c6e55fb1ceead7afca5f3d1576 commit 70e4cc800a1c28c6e55fb1ceead7afca5f3d1576 Author: Steven Bennetts <stevenjb@chromium.org> Date: Mon Dec 10 19:27:26 2018 Clean up EnrollmentDialogView This eliminates the unused 'owning_window' case from the enrollment dialog, folds in the remaning call to SystemTrayClient::CreateUnownedDialogWidget, and uses ash_util instead of duplicating logic. It also moves GetDialogParentContainerId to browser_dialogs.h. Bug: 912998 Change-Id: I53bc9ddfe9034a40bfd64ce35a41a21c1639b16e Reviewed-on: https://chromium-review.googlesource.com/c/1368456 Commit-Queue: Steven Bennetts <stevenjb@chromium.org> Reviewed-by: James Cook <jamescook@chromium.org> Cr-Commit-Position: refs/heads/master@{#615200} [modify] https://crrev.com/70e4cc800a1c28c6e55fb1ceead7afca5f3d1576/chrome/browser/chromeos/login/ui/login_web_dialog.cc [modify] https://crrev.com/70e4cc800a1c28c6e55fb1ceead7afca5f3d1576/chrome/browser/ui/ash/ash_util.cc [modify] https://crrev.com/70e4cc800a1c28c6e55fb1ceead7afca5f3d1576/chrome/browser/ui/ash/ash_util.h [modify] https://crrev.com/70e4cc800a1c28c6e55fb1ceead7afca5f3d1576/chrome/browser/ui/ash/network/enrollment_dialog_view.cc [modify] https://crrev.com/70e4cc800a1c28c6e55fb1ceead7afca5f3d1576/chrome/browser/ui/ash/network/enrollment_dialog_view.h [modify] https://crrev.com/70e4cc800a1c28c6e55fb1ceead7afca5f3d1576/chrome/browser/ui/ash/network/network_connect_delegate_chromeos.cc [modify] https://crrev.com/70e4cc800a1c28c6e55fb1ceead7afca5f3d1576/chrome/browser/ui/ash/system_tray_client.cc [modify] https://crrev.com/70e4cc800a1c28c6e55fb1ceead7afca5f3d1576/chrome/browser/ui/ash/system_tray_client.h
,
Dec 10
|
||
►
Sign in to add a comment |
||
Comment 1 by bugdroid1@chromium.org
, Dec 10