| Index: chrome/browser/ui/browser.cc
|
| diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
|
| index e08b21057b6c710083abdfeb07e9019f5d0dcaae..56641a62c3279b58693d9ebf2425b288b7582ccf 100644
|
| --- a/chrome/browser/ui/browser.cc
|
| +++ b/chrome/browser/ui/browser.cc
|
| @@ -3998,14 +3998,13 @@ void Browser::RegisterIntentHandler(WebContents* tab,
|
| void Browser::WebIntentDispatch(
|
| WebContents* tab, content::WebIntentsDispatcher* intents_dispatcher) {
|
| #if defined(ENABLE_WEB_INTENTS)
|
| - if (!web_intents::IsWebIntentsEnabled())
|
| + if (!web_intents::IsWebIntentsEnabled(profile_))
|
| return;
|
|
|
| TabContentsWrapper* tcw =
|
| TabContentsWrapper::GetCurrentWrapperForContents(tab);
|
| tcw->web_intent_picker_controller()->SetIntentsDispatcher(intents_dispatcher);
|
| tcw->web_intent_picker_controller()->ShowDialog(
|
| - this,
|
| intents_dispatcher->GetIntent().action,
|
| intents_dispatcher->GetIntent().type);
|
| #endif // defined(ENABLE_WEB_INTENTS)
|
|
|