File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed
Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -28,13 +28,11 @@ class PsstWebDialogDelegate : public ui::WebDialogDelegate {
2828 ~PsstWebDialogDelegate () override ;
2929
3030 GURL GetDialogContentURL () const override ;
31- void OnDialogClosed (const std::string& json_retval) override ;
32- void OnCloseContents (content::WebContents* source,
33- bool * out_close_dialog) override ;
3431};
3532
3633PsstWebDialogDelegate::PsstWebDialogDelegate () {
3734 set_show_dialog_title (false );
35+ set_can_close (true );
3836}
3937
4038PsstWebDialogDelegate::~PsstWebDialogDelegate () = default ;
@@ -43,14 +41,6 @@ GURL PsstWebDialogDelegate::GetDialogContentURL() const {
4341 return GURL (kBraveUIPsstURL );
4442}
4543
46- void PsstWebDialogDelegate::OnDialogClosed (
47- const std::string& /* json_retval */ ) {}
48-
49- void PsstWebDialogDelegate::OnCloseContents (content::WebContents* /* source */ ,
50- bool * out_close_dialog) {
51- *out_close_dialog = true ;
52- }
53-
5444void OpenPsstDialog (content::WebContents* initiator) {
5545 const gfx::Size min_size (kDialogWidth , kDialogMinHeight );
5646 const gfx::Size max_size (kDialogWidth , kDialogMaxHeight );
You can’t perform that action at this time.
0 commit comments