summaryrefslogtreecommitdiffstats
path: root/chrome/browser/external_protocol_dialog.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/external_protocol_dialog.cc')
-rw-r--r--chrome/browser/external_protocol_dialog.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/chrome/browser/external_protocol_dialog.cc b/chrome/browser/external_protocol_dialog.cc
index 251a911..e493829 100644
--- a/chrome/browser/external_protocol_dialog.cc
+++ b/chrome/browser/external_protocol_dialog.cc
@@ -105,6 +105,10 @@ bool ExternalProtocolDialog::Accept() {
return true;
}
+ChromeViews::View* ExternalProtocolDialog::GetContentsView() {
+ return message_box_view_;
+}
+
///////////////////////////////////////////////////////////////////////////////
// ExternalProtocolDialog, private:
@@ -135,11 +139,7 @@ ExternalProtocolDialog::ExternalProtocolDialog(TabContents* tab_contents,
root_hwnd = NULL;
}
- ChromeViews::Window* dialog =
- ChromeViews::Window::CreateChromeWindow(root_hwnd, gfx::Rect(),
- message_box_view_, this);
-
- dialog->Show();
+ ChromeViews::Window::CreateChromeWindow(root_hwnd, gfx::Rect(), this)->Show();
}
std::wstring ExternalProtocolDialog::GetApplicationForProtocol() {