Refine DialogClientView button code and unit tests.
Add an escape accelerator to the ok button only if there is *not* a cancel button.
Move FocusManager/ChangeListener cleanup to ViewHierarchyChanged.
Clear ok/cancel/default button pointers on ViewHierarchyChanged removal.
Remove view_unittest MockMenuModel and related use.
( these were left unused by
http://crrev.com/87490 )
Move tests and helpers to dialog_delegate_unittest, cleanup.
Merge, cleanup, and add tests, no loss of coverage.
BUG=
241451,
166075
TEST=Dialogs with just an [Ok] button will accept on [Esc]; no crashes.
R=sky@chromium.org
Committed:
https://src.chromium.org/viewvc/chrome?view=rev&revision=206950