diff options
Diffstat (limited to 'chrome/browser/ui/cocoa/web_intent_picker_cocoa.mm')
-rw-r--r-- | chrome/browser/ui/cocoa/web_intent_picker_cocoa.mm | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/chrome/browser/ui/cocoa/web_intent_picker_cocoa.mm b/chrome/browser/ui/cocoa/web_intent_picker_cocoa.mm index 1a8cdc4..f6141f1 100644 --- a/chrome/browser/ui/cocoa/web_intent_picker_cocoa.mm +++ b/chrome/browser/ui/cocoa/web_intent_picker_cocoa.mm @@ -156,10 +156,6 @@ void WebIntentPickerCocoa::OnExtensionIconChanged( void WebIntentPickerCocoa::OnInlineDisposition(WebIntentPickerModel* model, const GURL& url) { - const WebIntentPickerModel::InstalledService* service = - model->GetInstalledServiceWithURL(model->inline_disposition_url()); - DCHECK(service); - content::WebContents* web_contents = content::WebContents::Create( tab_contents_->profile(), tab_util::GetSiteInstanceForNewTab(tab_contents_->profile(), url), @@ -178,8 +174,7 @@ void WebIntentPickerCocoa::OnInlineDisposition(WebIntentPickerModel* model, content::Referrer(), content::PAGE_TRANSITION_START_PAGE, std::string()); - [sheet_controller_ setInlineDispositionTitle: - base::SysUTF16ToNSString(service->title)]; + [sheet_controller_ setInlineDispositionTabContents: inline_disposition_tab_contents_.get()]; PerformLayout(); @@ -234,12 +229,3 @@ void WebIntentPickerCocoa::OnSuggestionsLinkClicked() { DCHECK(delegate_); delegate_->OnSuggestionsLinkClicked(); } - -void WebIntentPickerCocoa::OnChooseAnotherService() { - DCHECK(delegate_); - delegate_->OnChooseAnotherService(); - inline_disposition_tab_contents_.reset(); - inline_disposition_delegate_.reset(); - [sheet_controller_ setInlineDispositionTabContents:NULL]; - PerformLayout(); -} |