• Danan S's avatar
    Change when callback is set for ParentPermissionDialog · bac35add
    Danan S authored
    This is needed due to a specific requirements for integration with the
    extensions Management API, which needs to first create the dialog, then
    create the callback that takes ownership of the dialog instance, then
    show the dialog.
    
    That order isn't possible when the dialog's callback is set in
    its constructor.
    
    Also remove unused ShowParentPermissionDialog...() fns from
    SupervisedUserService since we need to create the dialogs directly to
    achieve the pattern described above.
    
    Bug:957832
    
    Change-Id: I9852a4ecbe12babfadd3a806513713d2085b3d21
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2088952
    Auto-Submit: Dan S <danan@chromium.org>
    Reviewed-by: default avatarScott Violet <sky@chromium.org>
    Commit-Queue: Dan S <danan@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#747827}
    bac35add
supervised_user_service.h 13.9 KB