Skip to content

Commit 94fb2a7

Browse files
committed
review
#34174 (comment) #34174 (comment) Signed-off-by: Vadym Struts <vstruts@brave.com>
1 parent 1f082f3 commit 94fb2a7

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

browser/psst/psst_ui_presenter.cc

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff 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

3633
PsstWebDialogDelegate::PsstWebDialogDelegate() {
3734
set_show_dialog_title(false);
35+
set_can_close(true);
3836
}
3937

4038
PsstWebDialogDelegate::~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-
5444
void OpenPsstDialog(content::WebContents* initiator) {
5545
const gfx::Size min_size(kDialogWidth, kDialogMinHeight);
5646
const gfx::Size max_size(kDialogWidth, kDialogMaxHeight);

0 commit comments

Comments
 (0)