• Peter Boström's avatar
    Allow DialogModel without DialogModelDelegate · 7f4de763
    Peter Boström authored
    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: default avatarScott Violet <sky@chromium.org>
    Commit-Queue: Peter Boström <pbos@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#813448}
    7f4de763
dialog_model.h 13 KB