diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-10 00:15:38 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-10 00:15:38 +0000 |
commit | 05a7ce23a1847f0dc5cc1caa643841ca7eb7f415 (patch) | |
tree | d13bcaeaa86c28b2bde09f4c6432853cef11db34 /chrome | |
parent | 6537d72fb7c6417e08b86db054ed32c2a2ae0828 (diff) | |
download | chromium_src-05a7ce23a1847f0dc5cc1caa643841ca7eb7f415.zip chromium_src-05a7ce23a1847f0dc5cc1caa643841ca7eb7f415.tar.gz chromium_src-05a7ce23a1847f0dc5cc1caa643841ca7eb7f415.tar.bz2 |
InputWindow's window delegate should pass DeleteDelegate through to its own delegate to avoid
crashing because of not cleaning up.
http://crbug.com/8573
Review URL: http://codereview.chromium.org/40326
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11311 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/views/input_window.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/views/input_window.cc b/chrome/browser/views/input_window.cc index 2491321..fb051e3 100644 --- a/chrome/browser/views/input_window.cc +++ b/chrome/browser/views/input_window.cc @@ -35,6 +35,7 @@ class ContentView : public views::View, virtual bool Accept(); virtual bool Cancel(); virtual void WindowClosing(); + virtual void DeleteDelegate(); virtual std::wstring GetWindowTitle() const; virtual bool IsModal() const { return true; } virtual views::View* GetContentsView(); @@ -92,6 +93,10 @@ void ContentView::WindowClosing() { delegate_->WindowClosing(); } +void ContentView::DeleteDelegate() { + delegate_->DeleteDelegate(); +} + std::wstring ContentView::GetWindowTitle() const { return delegate_->GetWindowTitle(); } |