| Index: chrome/browser/ui/gtk/web_intent_picker_gtk.cc
|
| diff --git a/chrome/browser/ui/gtk/web_intent_picker_gtk.cc b/chrome/browser/ui/gtk/web_intent_picker_gtk.cc
|
| index d46250190c327f15a518f90536ca2e6518df3b73..bf9ee3a8ea348b274210d2fa4915b43400b93d41 100644
|
| --- a/chrome/browser/ui/gtk/web_intent_picker_gtk.cc
|
| +++ b/chrome/browser/ui/gtk/web_intent_picker_gtk.cc
|
| @@ -92,6 +92,8 @@ WebIntentPickerGtk::WebIntentPickerGtk(Browser* browser,
|
| bubble_(NULL),
|
| browser_(browser) {
|
| DCHECK(delegate_ != NULL);
|
| + DCHECK(browser);
|
| + DCHECK(browser->window());
|
| BrowserWindowGtk* browser_window =
|
| BrowserWindowGtk::GetBrowserWindowForNativeWindow(
|
| browser->window()->GetNativeHandle());
|
| @@ -165,10 +167,8 @@ void WebIntentPickerGtk::SetDefaultServiceIcon(size_t index) {
|
| void WebIntentPickerGtk::Close() {
|
| bubble_->Close();
|
| bubble_ = NULL;
|
| -
|
| - inline_disposition_tab_contents_.reset();
|
| - inline_disposition_delegate_.reset();
|
| - tab_contents_container_.reset();
|
| + if (inline_disposition_tab_contents_.get())
|
| + inline_disposition_tab_contents_->tab_contents()->OnCloseStarted();
|
| }
|
|
|
| void WebIntentPickerGtk::BubbleClosing(BubbleGtk* bubble,
|
|
|