Allow DialogModel without DialogModelDelegate
This lets dialogs that don't need to store state inside a DialogModel avoid instantiating (and subclassing) a DialogModelDelegate. DialogModel::Builder::model() is added to permit accessing a pointer to the model before it's been built so that it can be bound to callbacks. This change removes DialogModelDelegate use from WindowNamePrompt and OutdatedUpgradeBubbleView. Bug: 1106422 Change-Id: I66119536ae30e8d7a6a3232bea265b57cb8c9346 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2442500Reviewed-by:Scott Violet <sky@chromium.org> Commit-Queue: Peter Boström <pbos@chromium.org> Cr-Commit-Position: refs/heads/master@{#813448}
Showing
Please register or sign in to comment