summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/html_dialog_view.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/views/html_dialog_view.cc')
-rw-r--r--chrome/browser/views/html_dialog_view.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/chrome/browser/views/html_dialog_view.cc b/chrome/browser/views/html_dialog_view.cc
index 7d12d78..f28e609 100644
--- a/chrome/browser/views/html_dialog_view.cc
+++ b/chrome/browser/views/html_dialog_view.cc
@@ -98,6 +98,10 @@ views::View* HtmlDialogView::GetInitiallyFocusedView() {
return this;
}
+bool HtmlDialogView::ShouldShowWindowTitle() const {
+ return ShouldShowDialogTitle();
+}
+
////////////////////////////////////////////////////////////////////////////////
// HtmlDialogUIDelegate implementation:
@@ -150,6 +154,13 @@ void HtmlDialogView::OnCloseContents(TabContents* source,
delegate_->OnCloseContents(source, out_close_dialog);
}
+bool HtmlDialogView::ShouldShowDialogTitle() const {
+ if (delegate_)
+ return delegate_->ShouldShowDialogTitle();
+ else
+ return true;
+}
+
////////////////////////////////////////////////////////////////////////////////
// TabContentsDelegate implementation: