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 599fda60486737168980eaaa6d26819f040e0879..d668addf5749a368cd69f1182ed9ce32f9c6904b 100644 |
--- a/chrome/browser/ui/gtk/web_intent_picker_gtk.cc |
+++ b/chrome/browser/ui/gtk/web_intent_picker_gtk.cc |
@@ -192,7 +192,8 @@ void WebIntentPickerGtk::OnInlineDisposition(WebIntentPickerModel* model, |
content::WebContents* web_contents = content::WebContents::Create( |
browser_->profile(), NULL, MSG_ROUTING_NONE, NULL, NULL); |
inline_disposition_tab_contents_.reset(new TabContentsWrapper(web_contents)); |
- inline_disposition_delegate_.reset(new WebIntentInlineDispositionDelegate); |
+ inline_disposition_delegate_.reset( |
+ new WebIntentInlineDispositionDelegate(this)); |
web_contents->SetDelegate(inline_disposition_delegate_.get()); |
// Must call this immediately after WebContents creation to avoid race |