summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/chrome_plugin_host.cc1
-rw-r--r--chrome/browser/modal_html_dialog_delegate.h1
-rw-r--r--chrome/browser/views/html_dialog_view.cc2
3 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/chrome_plugin_host.cc b/chrome/browser/chrome_plugin_host.cc
index 1c7af93..008a7fe 100644
--- a/chrome/browser/chrome_plugin_host.cc
+++ b/chrome/browser/chrome_plugin_host.cc
@@ -278,6 +278,7 @@ class ModelessHtmlDialogDelegate : public HtmlDialogContentsDelegate {
// views::WindowDelegate implementation:
virtual bool IsModal() const { return false; }
+ virtual std::wstring GetWindowTitle() const { return L"Google Gears"; }
// HtmlDialogContentsDelegate implementation:
virtual GURL GetDialogContentURL() const { return params_.url; }
diff --git a/chrome/browser/modal_html_dialog_delegate.h b/chrome/browser/modal_html_dialog_delegate.h
index 34dd0ef..dd5e5d60 100644
--- a/chrome/browser/modal_html_dialog_delegate.h
+++ b/chrome/browser/modal_html_dialog_delegate.h
@@ -29,6 +29,7 @@ class ModalHtmlDialogDelegate
// views::WindowDelegate implementation:
virtual bool IsModal() const;
+ virtual std::wstring GetWindowTitle() const { return L"Google Gears"; }
// ModalHtmlDialogContents::ModalHTMLDialogContentsDelegate implementation:
virtual GURL GetDialogContentURL() const;
diff --git a/chrome/browser/views/html_dialog_view.cc b/chrome/browser/views/html_dialog_view.cc
index ea8fd14..58f9efe 100644
--- a/chrome/browser/views/html_dialog_view.cc
+++ b/chrome/browser/views/html_dialog_view.cc
@@ -46,7 +46,7 @@ bool HtmlDialogView::IsModal() const {
}
std::wstring HtmlDialogView::GetWindowTitle() const {
- return L"Google Gears";
+ return delegate_->GetWindowTitle();
}
void HtmlDialogView::WindowClosing() {